【angular】Module not found: Error: Can't resolve './$$_gendir/app/app.module.ngfactory' in 'D

ng build –prod 报错

Module not found: Error: Can’t resolve ‘./$$_gendir/app/app.module.ngfactory’ in
‘D:\platform\git-oschina\FCat\fcat-angular\src’

原因:angular-cli版本有点低

删除项目依赖:rm -rf node_modules/
安装最新angular-cli:npm install –save-dev @angular/cli@latest
重新安装依赖:npm install

angular最新版本开源实战项目:https://gitee.com/xfdm/FCat

你可能感兴趣的:(web前端,spring)