3

我正在尝试将我的应用程序从 Angular v2 升级到 v4,并且我正在使用 AOT 编译。谁能解释如何解决此错误,该错误无法识别我自己的任何代码(仅 Angular 的)。

Error encountered resolving symbol values statically. Calling function 'ɵmakeDecorator', function calls are not supported. Consider replacing the function or lambda with a reference to an exported function, resolving symbol Injectable in /project/node_modules/@angular/core/core.d.ts, resolving symbol ɵf in /project/node_modules/@angular/core/core.d.ts, resolving symbol ɵf in /project/node_modules/@angular/core/core.d.ts

我知道不使用 lambdas 等,并且我的代码在 v2 中编译得很好,所以我认为这不是问题。

4

1 回答 1

0

尝试重新安装ngc

$ npm install ngc 
于 2017-10-28T09:34:29.453 回答