“Error: AccountRoutingModule is not an NgModule”
问题 Upgrading my Angular 2.2.3 application from Angular CLI 2.0.0-beta.21 to Angular CLI 2.0.0-beta.22-1 , my ng build now fails with: 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