{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular-cli/issues/2957","repository_url":"https://api.github.com/repos/angular/angular-cli","labels_url":"https://api.github.com/repos/angular/angular-cli/issues/2957/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular-cli/issues/2957/comments","events_url":"https://api.github.com/repos/angular/angular-cli/issues/2957/events","html_url":"https://github.com/angular/angular-cli/issues/2957","id":186221645,"number":2957,"title":"--aot flag throws error Unexpected value 'TreeModule' imported by the module 'AnnotateModule'","user":{"login":"areijngoudt","id":2329587,"avatar_url":"https://avatars.githubusercontent.com/u/2329587?v=3","gravatar_id":"","url":"https://api.github.com/users/areijngoudt","html_url":"https://github.com/areijngoudt","followers_url":"https://api.github.com/users/areijngoudt/followers","following_url":"https://api.github.com/users/areijngoudt/following{/other_user}","gists_url":"https://api.github.com/users/areijngoudt/gists{/gist_id}","starred_url":"https://api.github.com/users/areijngoudt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/areijngoudt/subscriptions","organizations_url":"https://api.github.com/users/areijngoudt/orgs","repos_url":"https://api.github.com/users/areijngoudt/repos","events_url":"https://api.github.com/users/areijngoudt/events{/privacy}","received_events_url":"https://api.github.com/users/areijngoudt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-31T07:33:29Z","updated_at":"2016-10-31T11:39:12Z","closed_at":null,"body":"cli 1.0.0-beta.18 on OSX Sierra.\r\n\r\nUsing ng build --prod --aot throws this error:\r\n\r\nUnexpected value 'TreeModule' imported by the module 'AnnotateModule'\r\n\r\nAnnotateModule:\r\n```\r\nimport { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { TreeModule } from 'angular2-tree-component';\r\n\r\nimport { SharedModule } from '../shared/shared.module';\r\n\r\nimport { routing } from './annotate.routing';\r\nimport { AnnotateComponent } from './annotate.component';\r\n\r\n@NgModule({\r\n  imports: [\r\n    CommonModule,\r\n    TreeModule,\r\n    SharedModule,\r\n    routing,\r\n  ],\r\n  exports: [\r\n  ],\r\n  declarations: [\r\n    AnnotateComponent,\r\n  ],\r\n})\r\nexport class AnnotateModule {\r\n}\r\n```\r\n\r\nThe Treeview is a thrid party component https://github.com/500tech/angular2-tree-component "},"comment":{"url":"https://api.github.com/repos/angular/angular-cli/issues/comments/257272581","html_url":"https://github.com/angular/angular-cli/issues/2957#issuecomment-257272581","issue_url":"https://api.github.com/repos/angular/angular-cli/issues/2957","id":257272581,"user":{"login":"marisveide","id":17713131,"avatar_url":"https://avatars.githubusercontent.com/u/17713131?v=3","gravatar_id":"","url":"https://api.github.com/users/marisveide","html_url":"https://github.com/marisveide","followers_url":"https://api.github.com/users/marisveide/followers","following_url":"https://api.github.com/users/marisveide/following{/other_user}","gists_url":"https://api.github.com/users/marisveide/gists{/gist_id}","starred_url":"https://api.github.com/users/marisveide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marisveide/subscriptions","organizations_url":"https://api.github.com/users/marisveide/orgs","repos_url":"https://api.github.com/users/marisveide/repos","events_url":"https://api.github.com/users/marisveide/events{/privacy}","received_events_url":"https://api.github.com/users/marisveide/received_events","type":"User","site_admin":false},"created_at":"2016-10-31T11:39:12Z","updated_at":"2016-10-31T11:39:12Z","body":"For me too, similarily:\r\n$ ng build --prod --aot\r\n```\r\nCould not start watchman; falling back to NodeWatcher for file system events.\r\nVisit http://ember-cli.com/user-guide/#watchman for more info.\r\n  0% compilingUnexpected value 'LinkyModule' imported by the module 'MyModule'\r\nError: Unexpected value 'LinkyModule' imported by the module 'MyModule'\r\n    at .../node_modules/@angular/compiler/bundles/compiler.umd.js:14326:37\r\n    at Array.forEach (native)\r\n    at CompileMetadataResolver.getNgModuleMetadata (.../node_modules/@angular/compiler/bundles/compiler.umd.js:14311:46)\r\n    at .../node_modules/@angular/compiler/bundles/compiler.umd.js:13284:43\r\n    at Array.forEach (native)\r\n    at _extractModulesAndPipesOrDirectives (.../node_modules/@angular/compiler/bundles/compiler.umd.js:13283:28)\r\n    at analyzeNgModules (.../node_modules/@angular/compiler/bundles/compiler.umd.js:13039:16)\r\n    at OfflineCompiler.compileModules (.../node_modules/@angular/compiler/bundles/compiler.umd.js:13115:20)\r\n    at CodeGenerator.codegen (/Users/iminar/Dev/angular/modules/@angular/compiler-cli/src/codegen.ts:71:26)\r\n    at AotPlugin._make (.../node_modules/@ngtools/webpack/src/plugin.js:186:43)\r\n    at Compiler.<anonymous> (.../node_modules/@ngtools/webpack/src/plugin.js:151:75)\r\n    at Compiler.applyPluginsParallel (.../node_modules/tapable/lib/Tapable.js:156:14)\r\n    at Compiler.<anonymous> (.../node_modules/webpack/lib/Compiler.js:463:8)\r\n    at Compiler.applyPluginsAsync (.../node_modules/tapable/lib/Tapable.js:73:70)\r\n    at Compiler.compile (.../node_modules/webpack/lib/Compiler.js:456:7)\r\n    at Compiler.<anonymous> (.../node_modules/webpack/lib/Compiler.js:219:10)\r\n    at Compiler.readRecords (.../node_modules/webpack/lib/Compiler.js:367:10)\r\n    at Compiler.<anonymous> (.../node_modules/webpack/lib/Compiler.js:216:9)\r\n    at next (.../node_modules/tapable/lib/Tapable.js:81:11)\r\n    at Compiler.<anonymous> (.../node_modules/webpack/lib/CachePlugin.js:34:58)\r\n    at Compiler.applyPluginsAsync (.../node_modules/tapable/lib/Tapable.js:85:13)\r\n    at Compiler.<anonymous> (.../node_modules/webpack/lib/Compiler.js:213:8)\r\n    at next (.../node_modules/tapable/lib/Tapable.js:81:11)\r\n    at Compiler.<anonymous> (.../node_modules/webpack/lib/node/NodeEnvironmentPlugin.js:23:3)\r\n    at Compiler.applyPluginsAsync (.../node_modules/tapable/lib/Tapable.js:85:13)\r\n    at Compiler.run (.../node_modules/webpack/lib/Compiler.js:210:7)\r\n    at .../node_modules/angular-cli/tasks/build-webpack.js:26:29\r\n    at Class.run (.../node_modules/angular-cli/tasks/build-webpack.js:25:16)\r\n    at Class.run (.../node_modules/angular-cli/commands/build.js:50:26)\r\n    at Class.<anonymous> (.../node_modules/angular-cli/lib/models/command.js:152:17)\r\n    at tryCatch (.../node_modules/rsvp/dist/lib/rsvp/-internal.js:215:12)\r\n    at invokeCallback (.../node_modules/rsvp/dist/lib/rsvp/-internal.js:230:13)\r\n    at publish (.../node_modules/rsvp/dist/lib/rsvp/-internal.js:198:7)\r\n    at flush (.../node_modules/rsvp/dist/lib/rsvp/asap.js:85:5)\r\n    at _combinedTickCallback (internal/process/next_tick.js:67:7)\r\n    at process._tickCallback (internal/process/next_tick.js:98:9)\r\n```\r\n\r\nWhen building with ng build --prod it all builds just fine.\r\n"}}
{"actor":{"display_login":"marisveide"}}