小编Eri*_* Wo的帖子

升级到Angular 5.2.2后,"ng build --prod"无法正常工作

我工作的应用程序是过去几个月的Angular 4.3.4,我决定将其更新到最新版本5.2.2.

简而言之,当我尝试使用'ng build --prod'构建生产时,CLI会向我抛出此错误:

ERROR in Error during template compile of 'ea'
  Function calls are not supported in decorators but 'emakeDecorator' was 
  called in 'Injectable'
  'Injectable' calls 'emakeDecorator'
Run Code Online (Sandbox Code Playgroud)

我尝试了很多东西,包括删除node_modules和package-lock.json,更新npm并尝试5.2.0而不是5.2.2.似乎没有什么工作.

有没有人碰巧遇到同样的问题?

谢谢!

angular-cli angular

2
推荐指数
1
解决办法
2130
查看次数

标签 统计

angular ×1

angular-cli ×1