-
12 votesanswersviews
如何使用angular cli webpack提前编译器
有没有办法使用角度cli的AOT? 我已经安装了模块(@ angular / compiler @ angular / compiler-cli),当我输入ngc -p scr时,它会创建ngFactory.ts文件并将其编译为dist / tsc-out(tsconfig中的angular cli默认值) 不知道如何从这里开始:) 干杯 韩 -
3 votesanswersviews
TypeError:Angular2 AoT编译错误:createAotCompiler不是函数
我试图按照angular.io网站上的AOT编译指南,但当我执行下面显示的命令时,"node_modules/.bin/ngc" -p tsconfig-aot.json 我收到了错误 TypeError: compiler.createAotCompiler is not a function at Function.CodeGenerator.create (pat... -
1 votesanswersviews
使用AoT错误编译Angular 2/4 - extendStatics
我有一个应用程序,我正在尝试使用AoT编译 . 当我构建应用程序时,我收到以下错误: C:\ test \ node_modules \ @angular \ compiler-cli \ src \ diagnostics \ expression_diagnostics.js:14 extendStatics(d,b); ^ TypeError:对象原型可能只是一个Object或null:u...