grofit / aurelia-chart

A chart element for aurelia which is powered by chart js using html5 canvas.
MIT License
46 stars 25 forks source link

Loader must implement addPlugin(pluginName, implementation) #19

Closed mmalek06 closed 8 years ago

mmalek06 commented 8 years ago

As soon as I installed aurelia-chart and bundled my application I got the above error in the console. I'm using Aureliajs v1, so probably some update for the plugin is needed.

grofit commented 8 years ago

lol when isn't there an update needed for aurelia, not a clue about that one hopefully someone else can provide you some information on what is missing or needed, if you can provide information on:

mmalek06 commented 8 years ago

I'm using JSPM to bundle and resolve. Actual message output is this:

aurelia.js:15 Uncaught (in promise) Error: Loader must implement addPlugin(pluginName, implementation). at a.Loader.a.addPlugin (http://localhost:9000/dist/aurelia.js:15:31664) at a.ViewEngine.a.addResourcePlugin (http://localhost:9000/dist/aurelia.js:20:14418) at e (http://localhost:9000/dist/aurelia.js:15:8497) at r.E (http://localhost:9000/dist/aurelia.js:15:21214) at eval (http://localhost:9000/dist/aurelia.js:13:12452)a.Loader.a.addPlugin @ aurelia.js:15a.ViewEngine.a.addResourcePlugin @ aurelia.js:20e @ aurelia.js:15E @ aurelia.js:15(anonymous function) @ aurelia.js:13

grofit commented 8 years ago

and can you show us the code you are using to include the plugin in aurelia?

mmalek06 commented 8 years ago

It's just a standard use.plugin("aurelia-chart") call. I think I figured out why it's not working. It has something to do with aurelia fw version, but in a different way I initially thought. I'm using v.1.0.0-rc6, not 1.0.0. Installing this plugin caused whole aurelia components set to upgrade and probably one of those components (in the new version) is buggy and it's not yours :). Don't have time right now to investigate any further unfortunatelly :(

grofit commented 8 years ago

No worries if you solve it just update this so others know what to do.

mmalek06 commented 8 years ago

Dunno what happened. I removed my project, cloned it from git, installed all the dependencies, then the aurelia-chart plugin and everything seems to work even though lots of packages were updated after installing this plugin. I probably messed something up badly prior to installing aurelia chart. Anysways - please close or remove this issue as there is and was no bug here :)

grofit commented 8 years ago

no problem, glad its all working.