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

Unhandled rejection Error: Unable to find module with ID: aurelia-chart #31

Open teemuniiranen opened 7 years ago

teemuniiranen commented 7 years ago

I am getting "unable to find module" error with the latest webpack-plugin git://github.com/aurelia/webpack-plugin.git#v2.0-rc2

I have included sub modules in webpack.config.js

new AureliaPlugin({
      includeSubModules: [
        { moduleId: 'aurelia-chart' },
        { moduleId: 'chart-attribute' },
        { moduleId: 'chart-element' }
      ]
    }),

And also added it as a plugin in main.js:

aurelia.use
    .standardConfiguration()
    .developmentLogging()
    .plugin('aurelia-chart');

Any ideas?

grofit commented 7 years ago

I have not used Aurelia in a while so hopefully someone else in the community can advise on the new webpack stuff.

Tarpsvo commented 7 years ago

Please read the new Aurelia WebPack Plugin docs.

https://github.com/jods4/aurelia-webpack-build/wiki/Managing-dependencies

grofit commented 7 years ago

Sorry I meant more that I don't do any work with Aurelia at the moment and I do not want to pick it back up again currently to fix this, as no doubt another month down the line another module loading mechanism will appear which will then take time to implement again, so if someone wants this support add it as a PR unfortunately my time on open source projects is spent elsewhere currently and I have spent countless hours on my aurelia projects and 99% of that time was adding new module loading mechanisms and support for various eco systems, about 1% was spend writing the actual plugin logic.

teemuniiranen commented 7 years ago

Thanks @Tarpsvo for the link. Works fine with ModuleDependenciesPlugin.

new ModuleDependenciesPlugin({
      "aurelia-chart": [ './elements/chart-element', './attributes/chart-attribute' ],
      "parent-module": [ "child-module" ],
}),