{"action":"created","issue":{"url":"https://api.github.com/repos/AngularClass/angular2-webpack-starter/issues/1143","repository_url":"https://api.github.com/repos/AngularClass/angular2-webpack-starter","labels_url":"https://api.github.com/repos/AngularClass/angular2-webpack-starter/issues/1143/labels{/name}","comments_url":"https://api.github.com/repos/AngularClass/angular2-webpack-starter/issues/1143/comments","events_url":"https://api.github.com/repos/AngularClass/angular2-webpack-starter/issues/1143/events","html_url":"https://github.com/AngularClass/angular2-webpack-starter/issues/1143","id":186122973,"number":1143,"title":"branch-aot npm run build:aot fail","user":{"login":"heqiang421","id":9245110,"avatar_url":"https://avatars.githubusercontent.com/u/9245110?v=3","gravatar_id":"","url":"https://api.github.com/users/heqiang421","html_url":"https://github.com/heqiang421","followers_url":"https://api.github.com/users/heqiang421/followers","following_url":"https://api.github.com/users/heqiang421/following{/other_user}","gists_url":"https://api.github.com/users/heqiang421/gists{/gist_id}","starred_url":"https://api.github.com/users/heqiang421/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heqiang421/subscriptions","organizations_url":"https://api.github.com/users/heqiang421/orgs","repos_url":"https://api.github.com/users/heqiang421/repos","events_url":"https://api.github.com/users/heqiang421/events{/privacy}","received_events_url":"https://api.github.com/users/heqiang421/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-30T08:06:17Z","updated_at":"2016-11-01T14:47:43Z","closed_at":null,"body":"`> webpack --config config/webpack.aot.js  --progress --profile --bail\n                                                                                           10% building modules 0/3 modules 3 active ...module-aot/client/main.browser.aot.tsError: AppModule is not an NgModule\n    at AotPlugin.getNgModuleMetadata (/Users/heqiang/WebstormProjects/module-aot/node_modules/@ngtools/webpack/src/plugin.js:247:19)\n    at AotPlugin._processNgModule (/Users/heqiang/WebstormProjects/module-aot/node_modules/@ngtools/webpack/src/plugin.js:230:42)\n    at /Users/heqiang/WebstormProjects/module-aot/node_modules/@ngtools/webpack/src 10% building modules 3/3 modules 0 active                                         \n/Users/heqiang/WebstormProjects/module-aot/node_modules/webpack/lib/Compilation.js:197\n                        _this.errors.push(err);\n        ^\nTypeError: Cannot read property 'errors' of null\n    at errorAndCallback (/Users/heqiang/WebstormProjects/module-aot/node_modules/webpack/lib/Compilation.js:197:9)\n    at errorOrWarningAndCallback (/Users/heqiang/WebstormProjects/module-aot/node_modules/webpack/lib/Compilation.js:228:13)\n    at /Users/heqiang/WebstormProjects/module-aot/node_modules/webpack/lib/Compilation.js:232:12\n    at onDoneResolving (/Users/heqiang/WebstormProjects/module-aot/node_modules/webpack/lib/NormalModuleFactory.js:40:20)\n    at /Users/heqiang/WebstormProjects/module-aot/node_modules/webpack/lib/NormalModuleFactory.js:117:20\n    at /Users/heqiang/WebstormProjects/module-aot/node_modules/webpack/node_modules/async/lib/async.js:726:13\n    at /Users/heqiang/WebstormProjects/module-aot/node_modules/webpack/node_modules/async/lib/async.js:52:16\n    at done (/Users/heqiang/WebstormProjects/module-aot/node_modules/webpack/node_modules/async/lib/async.js:241:17)\n    at /Users/heqiang/WebstormProjects/module-aot/node_modules/webpack/node_modules/async/lib/async.js:44:16\n    at /Users/heqiang/WebstormProjects/module-aot/node_modules/webpack/node_modules/async/lib/async.js:723:17\n    at /Users/heqiang/WebstormProjects/module-aot/node_modules/webpack/node_modules/async/lib/async.js:167:37\n`\nmy environment:\n- Angular version: 2.0.1\n- Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]\n\nI am webpack-building-aot-app。\nand\nI am refering AngularClass/angular2-webpack-starter/aot\n- **Other information** (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)\n"},"comment":{"url":"https://api.github.com/repos/AngularClass/angular2-webpack-starter/issues/comments/257585635","html_url":"https://github.com/AngularClass/angular2-webpack-starter/issues/1143#issuecomment-257585635","issue_url":"https://api.github.com/repos/AngularClass/angular2-webpack-starter/issues/1143","id":257585635,"user":{"login":"watiko","id":199728,"avatar_url":"https://avatars.githubusercontent.com/u/199728?v=3","gravatar_id":"","url":"https://api.github.com/users/watiko","html_url":"https://github.com/watiko","followers_url":"https://api.github.com/users/watiko/followers","following_url":"https://api.github.com/users/watiko/following{/other_user}","gists_url":"https://api.github.com/users/watiko/gists{/gist_id}","starred_url":"https://api.github.com/users/watiko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/watiko/subscriptions","organizations_url":"https://api.github.com/users/watiko/orgs","repos_url":"https://api.github.com/users/watiko/repos","events_url":"https://api.github.com/users/watiko/events{/privacy}","received_events_url":"https://api.github.com/users/watiko/received_events","type":"User","site_admin":false},"created_at":"2016-11-01T14:47:43Z","updated_at":"2016-11-01T14:47:43Z","body":"I tried `npm run build:aot` on v6 branch.\r\nThen I got:\r\n```sh\r\nTypeError: this.compiler.compileModules is not a function\r\n    at CodeGenerator.codegen (/home/watiko/angular/angular2-webpack-starter/node_modules/@angular/compiler-cli/src/codegen.js:58:30)\r\n    at codegen (/home/watiko/angular/angular2-webpack-starter/node_modules/@angular/compiler-cli/src/main.js:7:81)\r\n    at Object.main (/home/watiko/angular/angular2-webpack-starter/node_modules/@angular/tsc-wrapped/src/main.js:30:16)\r\n    at Object.<anonymous> (/home/watiko/angular/angular2-webpack-starter/node_modules/@angular/compiler-cli/src/main.js:16:9)\r\n    at Module._compile (module.js:570:32)\r\n    at Object.Module._extensions..js (module.js:579:10)\r\n    at Module.load (module.js:487:32)\r\n    at tryModuleLoad (module.js:446:12)\r\n    at Function.Module._load (module.js:438:3)\r\n    at Module.runMain (module.js:604:10)\r\nCompilation failed\r\n```\r\n\r\nI think it comes from `@angular/compiler-cli: \"^2.1.1\"` in `package.json`.\r\nActually `2.1.1` was installed so I removed the prefixed `^` and reinstall(`yarn`) dependencies.\r\nAll things goes well."}}
{"actor":{"display_login":"watiko"}}