{"action":"created","issue":{"url":"https://api.github.com/repos/grofit/aurelia-chart/issues/14","repository_url":"https://api.github.com/repos/grofit/aurelia-chart","labels_url":"https://api.github.com/repos/grofit/aurelia-chart/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/grofit/aurelia-chart/issues/14/comments","events_url":"https://api.github.com/repos/grofit/aurelia-chart/issues/14/events","html_url":"https://github.com/grofit/aurelia-chart/issues/14","id":163531241,"number":14,"title":"How to use it with NPM WebPack?","user":{"login":"ghiscoding","id":643976,"avatar_url":"https://avatars.githubusercontent.com/u/643976?v=3","gravatar_id":"","url":"https://api.github.com/users/ghiscoding","html_url":"https://github.com/ghiscoding","followers_url":"https://api.github.com/users/ghiscoding/followers","following_url":"https://api.github.com/users/ghiscoding/following{/other_user}","gists_url":"https://api.github.com/users/ghiscoding/gists{/gist_id}","starred_url":"https://api.github.com/users/ghiscoding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghiscoding/subscriptions","organizations_url":"https://api.github.com/users/ghiscoding/orgs","repos_url":"https://api.github.com/users/ghiscoding/repos","events_url":"https://api.github.com/users/ghiscoding/events{/privacy}","received_events_url":"https://api.github.com/users/ghiscoding/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-02T18:50:40Z","updated_at":"2016-07-03T02:35:00Z","closed_at":null,"body":"Hello, this seems like a really great plugin. The only problem is that I can't seem to find a way to use it with `NPM/WebPack` since it was done only for JSPM. Will it be possible to make it work with NPM and not just JSPM? \r\n\r\nI tried to include this in my `main.ja`\r\n```javascript\r\nimport { aureliaChart } from 'aurelia-chart';\r\nimport 'aurelia-chart';\r\n\r\nbootstrap(function(aurelia) {\r\n  aurelia.use\r\n    .standardConfiguration()\r\n    .developmentLogging()\r\n    .feature('aurelia-chart');\r\n\r\n  aurelia.start().then(a => a.setRoot('src/app'));\r\n}\r\n```\r\n\r\nbut then I get the following error\r\n```javascript\r\nUnhandled rejection Error: Cannot find module './aurelia-chart/elements/chart-element'.\r\n```"},"comment":{"url":"https://api.github.com/repos/grofit/aurelia-chart/issues/comments/230131856","html_url":"https://github.com/grofit/aurelia-chart/issues/14#issuecomment-230131856","issue_url":"https://api.github.com/repos/grofit/aurelia-chart/issues/14","id":230131856,"user":{"login":"ghiscoding","id":643976,"avatar_url":"https://avatars.githubusercontent.com/u/643976?v=3","gravatar_id":"","url":"https://api.github.com/users/ghiscoding","html_url":"https://github.com/ghiscoding","followers_url":"https://api.github.com/users/ghiscoding/followers","following_url":"https://api.github.com/users/ghiscoding/following{/other_user}","gists_url":"https://api.github.com/users/ghiscoding/gists{/gist_id}","starred_url":"https://api.github.com/users/ghiscoding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghiscoding/subscriptions","organizations_url":"https://api.github.com/users/ghiscoding/orgs","repos_url":"https://api.github.com/users/ghiscoding/repos","events_url":"https://api.github.com/users/ghiscoding/events{/privacy}","received_events_url":"https://api.github.com/users/ghiscoding/received_events","type":"User","site_admin":false},"created_at":"2016-07-03T02:35:00Z","updated_at":"2016-07-03T02:35:00Z","body":"Hello, thanks a lot for the reply. \r\n\r\nI spent some more time on this and actually got your code working but only after copying all your `src` folder into my own Aurelia project and then use it with `.feature()` instead of `.plugin()`. I had to modify couple of line of code to make it to work but wasn't that much either. \r\n\r\nSo yes I did get it working with latest Aurelia RC1, but I don't know what needs to be done to transform this back into a `plugin` like it should. The reason of going with NPM install is not just for Webpack, if you look at the new `Aurelia CLI`, you will see that they also use it instead of JSPM. \r\n\r\nI wish that I could find the complete way to make it to work so that I can contribute to your project. So far the only I found is that in the `package.json`, the dependencies that you have under JSPM also needs to be outside so that NPM can detect them as well and install them. But this isn't enough to make it to work. "}}
{"actor":{"display_login":"ghiscoding"}}