【发布时间】:2018-02-01 08:32:41
【问题描述】:
在过去的几个月里,我正在开发的应用程序是 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'
我已经尝试了很多东西,包括删除 node_modules 和 package-lock.json、更新 npm 以及尝试版本 5.2.0 而不是 5.2.2。似乎没有任何效果。
有人遇到同样的问题吗?
谢谢!
【问题讨论】:
标签: angular angular-cli