Angular 2.2.3
将我的应用程序从升级Angular CLI 2.0.0-beta.21
到Angular CLI 2.0.0-beta.22-1
,我ng build
现在失败了:
Error: AccountRoutingModule is not an NgModule
at AotPlugin.getNgModuleMetadata (/home/jan/src/fm-repos/fm-ui/node_modules/@ngtools/webpack/src/plugin.js:332:19)
at /home/jan/src/fm-repos/fm-ui/node_modules/@ngtools/webpack/src/plugin.js:345:51
at Array.map (native)
at AotPlugin.extractLoadChildren (/home/jan/src/fm-repos/fm-ui/node_modules/@ngtools/webpack/src/plugin.js:343:14)
at /home/jan/src/fm-repos/fm-ui/node_modules/@ngtools/webpack/src/plugin.js:346:30
at Array.map (native)
at AotPlugin.extractLoadChildren (/home/jan/src/fm-repos/fm-ui/node_modules/@ngtools/webpack/src/plugin.js:343:14)
at AotPlugin._processNgModule (/home/jan/src/fm-repos/fm-ui/node_modules/@ngtools/webpack/src/plugin.js:272:38)
at /home/jan/src/fm-repos/fm-ui/node_modules/@ngtools/webpack/src/plugin.js:242:39
at process._tickCallback (internal/process/next_tick.js:103:7)
应用程序构建并运行良好Angular CLI 2.0.0-beta.21
;但是,Angular CLI 2.0.0-beta.22-1
现在默认使用 AoT 而不是 JiT。