我正在开发的应用程序过去几个月一直是Angular 4.3.4版本,现在我决定将其更新到最新版本5.2.2。
简单来说,当我尝试使用“ng build --prod”构建生产时,命令行界面会抛出以下错误:
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版本。但是似乎都没有用。
有没有人遇到相同的问题呢?
谢谢!