升級我的Angular 2.2.3
應用從Angular CLI 2.0.0-beta.21
到Angular CLI 2.0.0-beta.22-1
,我現在ng build
失敗:「錯誤:AccountRoutingModule不是NgModule」
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。
小心解釋倒票? –