标签: angular typescript angular-cli
我正在尝试使用以下方法构建我的角度应用:
ng build --aot
但我明白了:
ERROR in ./src/main.ts Module not found: Error: Can't resolve './$$_gendir/app/app.module.ngfactory' in...
答案 0 :(得分:0)
angular git hub也对此有一些讨论。我认为它对你有帮助。请关注此link
ng build --env=prod
您也可以参考此stackoverflow question
答案 1 :(得分:-2)
请尝试此命令 ng build --aot = false将忽略该错误