Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
teemuniiranen opened this issue Apr 3, 2017 · 4 comments

Comments

@teemuniiranen
Copy link

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
Copy link
Owner

grofit commented Apr 3, 2017

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

@Tarpsvo
Copy link

Tarpsvo commented Apr 7, 2017

Please read the new Aurelia WebPack Plugin docs.

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

@grofit
Copy link
Owner

grofit commented Apr 7, 2017

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
Copy link
Author

teemuniiranen commented Apr 18, 2017

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants