{"action":"created","issue":{"url":"https://api.github.com/repos/andrucz/ionic2-rating/issues/4","repository_url":"https://api.github.com/repos/andrucz/ionic2-rating","labels_url":"https://api.github.com/repos/andrucz/ionic2-rating/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/andrucz/ionic2-rating/issues/4/comments","events_url":"https://api.github.com/repos/andrucz/ionic2-rating/issues/4/events","html_url":"https://github.com/andrucz/ionic2-rating/issues/4","id":182108310,"number":4,"title":"ngc: Error: Unexpected value 'Ionic2RatingModule' imported by the module 'AppModule'","user":{"login":"chit786","id":18376182,"avatar_url":"https://avatars.githubusercontent.com/u/18376182?v=3","gravatar_id":"","url":"https://api.github.com/users/chit786","html_url":"https://github.com/chit786","followers_url":"https://api.github.com/users/chit786/followers","following_url":"https://api.github.com/users/chit786/following{/other_user}","gists_url":"https://api.github.com/users/chit786/gists{/gist_id}","starred_url":"https://api.github.com/users/chit786/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chit786/subscriptions","organizations_url":"https://api.github.com/users/chit786/orgs","repos_url":"https://api.github.com/users/chit786/repos","events_url":"https://api.github.com/users/chit786/events{/privacy}","received_events_url":"https://api.github.com/users/chit786/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-10-10T20:32:50Z","updated_at":"2016-10-12T15:08:01Z","closed_at":null,"body":"I am getting above error when trying to build the IOS package. ionic serve works but ionic build ios failed with below stacktrace : \r\n\r\n\r\n[22:21:14]  lint finished in 991 ms\r\n[22:21:16]  ngc: Error: Unexpected value 'Ionic2RatingModule' imported by the module 'AppModule'\r\n    at /Users/chitrang/ionic2/CaffeIOT/node_modules/@angular/compiler/bundles/compiler.umd.js:13982:37\r\n    at Array.forEach (native)\r\n    at CompileMetadataResolver.getNgModuleMetadata (/Users/chitrang/ionic2/CaffeIOT/node_modules/@angular/compiler/bundles/compiler.umd.js:13967:46)\r\n    at /Users/chitrang/ionic2/CaffeIOT/node_modules/@angular/compiler/bundles/compiler.umd.js:12812:58\r\n    at Array.forEach (native)\r\n    at OfflineCompiler.analyzeModules (/Users/chitrang/ionic2/CaffeIOT/node_modules/@angular/compiler/bundles/compiler.umd.js:12811:21)\r\n    at CodeGenerator.codegen (/Users/chitrang/ionic2/CaffeIOT/node_modules/@angular/compiler-cli/src/codegen.js:105:47)\r\n    at codegen (/Users/chitrang/ionic2/CaffeIOT/node_modules/@angular/compiler-cli/src/main.js:7:81)\r\n    at Object.main (/Users/chitrang/ionic2/CaffeIOT/node_modules/@angular/tsc-wrapped/src/main.js:30:16)\r\n    at Object.<anonymous> (/Users/chitrang/ionic2/CaffeIOT/node_modules/@angular/compiler-cli/src/main.js:14:9)\r\n\r\n\r\n[22:21:16]  ngc: Compilation failed\r\n\r\n\r\n[22:21:16]  ngc failed:  NGC encountered an error\r\n\r\n[22:21:16]  Error: NGC encountered an error\r\n    at ChildProcess.<anonymous> (/Users/chitrang/ionic2/CaffeIOT/node_modules/@ionic/app-scripts/dist/ngc.js:62:24)\r\n    at emitTwo (events.js:106:13)\r\n    at ChildProcess.emit (events.js:191:7)\r\n    at maybeClose (internal/child_process.js:877:16)\r\n    at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)\r\n\r\nError running ionic app script \"build\": Error: NGC encountered an error\r\n..========================================================\r\n\r\napp.module.ts snapshot: \r\nimport { Ionic2RatingModule } from 'ionic2-rating/module';\r\n\r\n\r\n@NgModule({\r\n  declarations: [\r\n    MyApp,\r\n    HomePage,\r\n    Orders,\r\n    PlaceOrder,\r\n    OrderDetail\r\n\r\n  ],\r\n  imports: [\r\n   \r\n    IonicModule.forRoot(MyApp),\r\n    Ionic2RatingModule\r\n  ],\r\n\r\nPlease advice.\r\n"},"comment":{"url":"https://api.github.com/repos/andrucz/ionic2-rating/issues/comments/253241108","html_url":"https://github.com/andrucz/ionic2-rating/issues/4#issuecomment-253241108","issue_url":"https://api.github.com/repos/andrucz/ionic2-rating/issues/4","id":253241108,"user":{"login":"danielabbatt","id":8926756,"avatar_url":"https://avatars.githubusercontent.com/u/8926756?v=3","gravatar_id":"","url":"https://api.github.com/users/danielabbatt","html_url":"https://github.com/danielabbatt","followers_url":"https://api.github.com/users/danielabbatt/followers","following_url":"https://api.github.com/users/danielabbatt/following{/other_user}","gists_url":"https://api.github.com/users/danielabbatt/gists{/gist_id}","starred_url":"https://api.github.com/users/danielabbatt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielabbatt/subscriptions","organizations_url":"https://api.github.com/users/danielabbatt/orgs","repos_url":"https://api.github.com/users/danielabbatt/repos","events_url":"https://api.github.com/users/danielabbatt/events{/privacy}","received_events_url":"https://api.github.com/users/danielabbatt/received_events","type":"User","site_admin":false},"created_at":"2016-10-12T15:08:01Z","updated_at":"2016-10-12T15:08:01Z","body":"I have exactly the same issue when doing prod build. Seems to be related to rollup, Angular2 and aot? Affects both ios and Android build commands"}}
{"actor":{"display_login":"danielabbatt"}}