0

我使用 angular-cli 搭建脚手架。我有默认加载 bieng 的 app 模块,而其他模块是延迟加载的。

在跑步的时候:

ng build -prod --aot 
14% building modules 36/37 modules 1 active ...de_modules/css-loader/lib/css-base.js**OrderModule** is not an NgModule
4

1 回答 1

0

是的。最新版本的 angular-cli 支持它。将您的 cli 更新到最新版本。

npm uninstall -g angular-cli
npm cache clean 
npm install -g angular-cli@latest
于 2016-12-03T11:52:38.707 回答