我工作的应用程序是过去几个月的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.似乎没有什么工作.
有没有人碰巧遇到同样的问题?
谢谢!