{"action":"created","issue":{"url":"https://api.github.com/repos/paradox41/angular2-chartist/issues/55","repository_url":"https://api.github.com/repos/paradox41/angular2-chartist","labels_url":"https://api.github.com/repos/paradox41/angular2-chartist/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/paradox41/angular2-chartist/issues/55/comments","events_url":"https://api.github.com/repos/paradox41/angular2-chartist/issues/55/events","html_url":"https://github.com/paradox41/angular2-chartist/issues/55","id":185387012,"number":55,"title":"bundle failed: 'ChartistModule' is not exported by node_modules/angular2-chartist/dist/angular2-chartist.js ","user":{"login":"jensstruemper","id":7290235,"avatar_url":"https://avatars.githubusercontent.com/u/7290235?v=3","gravatar_id":"","url":"https://api.github.com/users/jensstruemper","html_url":"https://github.com/jensstruemper","followers_url":"https://api.github.com/users/jensstruemper/followers","following_url":"https://api.github.com/users/jensstruemper/following{/other_user}","gists_url":"https://api.github.com/users/jensstruemper/gists{/gist_id}","starred_url":"https://api.github.com/users/jensstruemper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jensstruemper/subscriptions","organizations_url":"https://api.github.com/users/jensstruemper/orgs","repos_url":"https://api.github.com/users/jensstruemper/repos","events_url":"https://api.github.com/users/jensstruemper/events{/privacy}","received_events_url":"https://api.github.com/users/jensstruemper/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-10-26T13:03:03Z","updated_at":"2016-11-08T12:30:14Z","closed_at":"2016-10-26T13:35:52Z","body":"Chartist working great now. However I finally wanted to migrate my code to the latest Ionic 2 RC1 (angular 2 final) and immediately bumped into a problem. \n\n```\nMacBook-Pro:~/Development/Ionic/ble_reflow_rc1$ ionic run android\n\nRunning 'run:before' npm script before run\n\n> ionic-hello-world@ build /Users/jens/Development/Ionic/ble_reflow_rc1\n> ionic-app-scripts build --dev\n\n[14:33:55]  ionic-app-scripts 0.0.36 \n[14:33:55]  build dev started ... \n[14:33:55]  clean started ... \n[14:33:55]  clean finished in 3 ms \n[14:33:55]  copy started ... \n[14:33:55]  transpile started ... \n[14:33:55]  lint started ... \n[14:33:57]  lint finished in 1.45 s \n[14:33:59]  transpile finished in 3.51 s \n[14:33:59]  bundle started ... \n[14:33:59]  copy finished in 3.56 s \n[14:34:05]  bundle failed: 'ChartistModule' is not exported by node_modules/angular2-chartist/dist/angular2-chartist.js \n            (imported by src/app/app.module.ts). For help fixing this error see https://github.com/rollup/rollup/wiki/Troubleshooting#name-is-not-exported-by-module \n[14:34:05]  ionic-app-script task: \"build\" \n[14:34:05]  Error: 'ChartistModule' is not exported by node_modules/angular2-chartist/dist/angular2-chartist.js \n            (imported by src/app/app.module.ts). For help fixing this error see https://github.com/rollup/rollup/wiki/Troubleshooting#name-is-not-exported-by-module \n```\n\nNot sure but it might be related to the module bundler ionic is using in context with AoT compiler [Link](https://forum.ionicframework.com/t/unexpected-value-ng2completermodule-imported-by-the-module-appmodule/65922). However if I use the `--dev` argument the JiT compiler should be used and the issue is supposed to go away for the price of a larger and slower app - but it doesn't. Some people suggest that external modules need to be made compliant for AoT....that's why I am raising it here again. \n\nMy app.modules.ts:\n\n```\nimport { NgModule } from '@angular/core';\nimport { IonicApp, IonicModule } from 'ionic-angular';\nimport { MyApp } from './app.component';\nimport { Main } from '../pages/main/main';\nimport { Scan } from '../pages/scan/scan';\nimport { BleComms } from '../providers/blecomms';\nimport { ChartistModule } from 'angular2-chartist';\nimport { Chart } from '../pages/main/chart';\n\n@NgModule({\n  declarations: [\n    Main,\n    Scan,\n    Chart, \n  ],\n  imports: [\n    ChartistModule,\n    IonicModule.forRoot(MyApp),\n  ],\n  bootstrap: [IonicApp],\n  entryComponents: [\n    Main,\n    Scan,\n  ],\n  providers: [BleComms]\n})\nexport class AppModule {}\n```\n\nAny idea? \n"},"comment":{"url":"https://api.github.com/repos/paradox41/angular2-chartist/issues/comments/259124359","html_url":"https://github.com/paradox41/angular2-chartist/issues/55#issuecomment-259124359","issue_url":"https://api.github.com/repos/paradox41/angular2-chartist/issues/55","id":259124359,"user":{"login":"jensstruemper","id":7290235,"avatar_url":"https://avatars.githubusercontent.com/u/7290235?v=3","gravatar_id":"","url":"https://api.github.com/users/jensstruemper","html_url":"https://github.com/jensstruemper","followers_url":"https://api.github.com/users/jensstruemper/followers","following_url":"https://api.github.com/users/jensstruemper/following{/other_user}","gists_url":"https://api.github.com/users/jensstruemper/gists{/gist_id}","starred_url":"https://api.github.com/users/jensstruemper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jensstruemper/subscriptions","organizations_url":"https://api.github.com/users/jensstruemper/orgs","repos_url":"https://api.github.com/users/jensstruemper/repos","events_url":"https://api.github.com/users/jensstruemper/events{/privacy}","received_events_url":"https://api.github.com/users/jensstruemper/received_events","type":"User","site_admin":false},"created_at":"2016-11-08T12:30:14Z","updated_at":"2016-11-08T12:30:14Z","body":"I gave it a try on local copy of the module using the following tsconfig.json. \r\n\r\n```\r\n{\r\n  \"compilerOptions\": {\r\n    \"target\": \"es5\",\r\n    \"module\": \"es2015\",\r\n    \"moduleResolution\": \"node\",\r\n    \"sourceMap\": true,\r\n    \"emitDecoratorMetadata\": true,\r\n    \"experimentalDecorators\": true,\r\n    \"removeComments\": false,\r\n    \"noImplicitAny\": true,\r\n    \"suppressImplicitAnyIndexErrors\": true\r\n  },\r\n\r\n  \"files\": [\r\n    \"src/chartist.component.ts\"\r\n  ],\r\n\r\n  \"angularCompilerOptions\": {\r\n   \"genDir\": \"aot\",\r\n   \"skipMetadataEmit\" : false\r\n }\r\n}\r\n\r\n```\r\n\r\nCompile is successfull, aot directory created including the *.ngfactory.ts but no metadata.json. I guess we need to wait until Will has time to look into this. "}}
{"actor":{"display_login":"jensstruemper"}}