{"action":"closed","issue":{"url":"https://api.github.com/repos/kekeh/mydatepicker/issues/93","repository_url":"https://api.github.com/repos/kekeh/mydatepicker","labels_url":"https://api.github.com/repos/kekeh/mydatepicker/issues/93/labels{/name}","comments_url":"https://api.github.com/repos/kekeh/mydatepicker/issues/93/comments","events_url":"https://api.github.com/repos/kekeh/mydatepicker/issues/93/events","html_url":"https://github.com/kekeh/mydatepicker/issues/93","id":191604818,"number":93,"title":"Error on AoT compilation","user":{"login":"duki994","id":9515864,"avatar_url":"https://avatars.githubusercontent.com/u/9515864?v=3","gravatar_id":"","url":"https://api.github.com/users/duki994","html_url":"https://github.com/duki994","followers_url":"https://api.github.com/users/duki994/followers","following_url":"https://api.github.com/users/duki994/following{/other_user}","gists_url":"https://api.github.com/users/duki994/gists{/gist_id}","starred_url":"https://api.github.com/users/duki994/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duki994/subscriptions","organizations_url":"https://api.github.com/users/duki994/orgs","repos_url":"https://api.github.com/users/duki994/repos","events_url":"https://api.github.com/users/duki994/events{/privacy}","received_events_url":"https://api.github.com/users/duki994/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-25T00:13:21Z","updated_at":"2016-11-28T06:37:09Z","closed_at":"2016-11-28T06:37:09Z","body":"I get this error whenever i try to build app with AoT.\r\nIt works good without AoT\r\n\r\nUnexpected value 'MyDatePickerModule' imported by the module 'AppModule'\r\n\r\n```\r\nUnexpected value 'MyDatePickerModule' imported by the module 'AppModule'\r\nError: Unexpected value 'MyDatePickerModule' imported by the module 'AppModule'\r\n    at /home/duki994/Documents/BEST/cv_app/node_modules/@angular/compiler/bundles/compiler.umd.js:14675:33\r\n    at Array.forEach (native)\r\n    at CompileMetadataResolver._loadNgModuleMetadata (/home/duki994/Documents/BEST/cv_app/node_modules/@angular/compiler/bundles/compiler.umd.js:14660:51)\r\n    at CompileMetadataResolver.getUnloadedNgModuleMetadata (/home/duki994/Documents/BEST/cv_app/node_modules/@angular/compiler/bundles/compiler.umd.js:14636:23)\r\n    at addNgModule (/home/duki994/Documents/BEST/cv_app/node_modules/@angular/compiler/bundles/compiler.umd.js:12944:43)\r\n    at /home/duki994/Documents/BEST/cv_app/node_modules/@angular/compiler/bundles/compiler.umd.js:12957:16\r\n    at Array.forEach (native)\r\n    at _createNgModules (/home/duki994/Documents/BEST/cv_app/node_modules/@angular/compiler/bundles/compiler.umd.js:12956:28)\r\n    at analyzeNgModules (/home/duki994/Documents/BEST/cv_app/node_modules/@angular/compiler/bundles/compiler.umd.js:12700:16)\r\n    at analyzeAndValidateNgModules (/home/duki994/Documents/BEST/cv_app/node_modules/@angular/compiler/bundles/compiler.umd.js:12704:20)\r\n    at OfflineCompiler.compileModules (/home/duki994/Documents/BEST/cv_app/node_modules/@angular/compiler/bundles/compiler.umd.js:12775:20)\r\n    at CodeGenerator.codegen (/Users/chuckj/src/angular/modules/@angular/compiler-cli/src/codegen.ts:71:26)\r\n    at AotPlugin._make (/home/duki994/Documents/BEST/cv_app/node_modules/@ngtools/webpack/src/plugin.js:193:43)\r\n    at Compiler.<anonymous> (/home/duki994/Documents/BEST/cv_app/node_modules/@ngtools/webpack/src/plugin.js:157:75)\r\n    at Compiler.applyPluginsParallel (/home/duki994/Documents/BEST/cv_app/node_modules/tapable/lib/Tapable.js:156:14)\r\n    at Compiler.<anonymous> (/home/duki994/Documents/BEST/cv_app/node_modules/webpack/lib/Compiler.js:463:8)\r\n    at Compiler.applyPluginsAsync (/home/duki994/Documents/BEST/cv_app/node_modules/tapable/lib/Tapable.js:73:70)\r\n    at Compiler.compile (/home/duki994/Documents/BEST/cv_app/node_modules/webpack/lib/Compiler.js:456:7)\r\n    at Compiler.<anonymous> (/home/duki994/Documents/BEST/cv_app/node_modules/webpack/lib/Compiler.js:219:10)\r\n    at Compiler.readRecords (/home/duki994/Documents/BEST/cv_app/node_modules/webpack/lib/Compiler.js:367:10)\r\n    at Compiler.<anonymous> (/home/duki994/Documents/BEST/cv_app/node_modules/webpack/lib/Compiler.js:216:9)\r\n    at next (/home/duki994/Documents/BEST/cv_app/node_modules/tapable/lib/Tapable.js:81:11)\r\n    at Compiler.<anonymous> (/home/duki994/Documents/BEST/cv_app/node_modules/webpack/lib/CachePlugin.js:34:58)\r\n    at Compiler.applyPluginsAsync (/home/duki994/Documents/BEST/cv_app/node_modules/tapable/lib/Tapable.js:85:13)\r\n    at Compiler.<anonymous> (/home/duki994/Documents/BEST/cv_app/node_modules/webpack/lib/Compiler.js:213:8)\r\n    at next (/home/duki994/Documents/BEST/cv_app/node_modules/tapable/lib/Tapable.js:81:11)\r\n    at Compiler.<anonymous> (/home/duki994/Documents/BEST/cv_app/node_modules/webpack/lib/node/NodeEnvironmentPlugin.js:23:3)\r\n    at Compiler.applyPluginsAsync (/home/duki994/Documents/BEST/cv_app/node_modules/tapable/lib/Tapable.js:85:13)\r\n    at Compiler.run (/home/duki994/Documents/BEST/cv_app/node_modules/webpack/lib/Compiler.js:210:7)\r\n    at /home/duki994/Documents/BEST/cv_app/node_modules/angular-cli/tasks/build-webpack.js:24:29\r\n    at Class.run (/home/duki994/Documents/BEST/cv_app/node_modules/angular-cli/tasks/build-webpack.js:23:16)\r\n    at Class.run (/home/duki994/Documents/BEST/cv_app/node_modules/angular-cli/commands/build.js:51:26)\r\n    at Class.<anonymous> (/home/duki994/Documents/BEST/cv_app/node_modules/angular-cli/angular-cli/lib/models/command.js:152:17)\r\n    at process._tickCallback (internal/process/next_tick.js:103:7)\r\n```\r\n\r\n\r\nHere's my module imports:\r\n```\r\n  imports: [\r\n    MyDatePickerModule,\r\n    BrowserModule,\r\n    HttpModule,\r\n    MaterialModule.forRoot(),\r\n    routing,\r\n    ReactiveFormsModule,\r\n      FormsModule\r\n  ],\r\n```\r\n\r\nMaybe some problem with decorators during transpilation?\r\nI'm using Angular CLI."}}
{"actor":{"display_login":"kekeh"}}