0

将库从Angular 8成功升级到Angular 9后 ,当我尝试构建它时,我收到以下错误:

Compiling TypeScript sources through ngc
ERROR: Decorator argument must resolve to a string
An unhandled exception occurred: Decorator argument must resolve to a string

关于可能导致此错误的任何线索或这意味着什么?

4

1 回答 1

0

出现问题是因为某些组件的 Output 属性的名称是 Enum 而不是纯字符串。一旦我将所有这些地方都更改为字符串,它就解决了这个问题。

于 2020-03-08T14:37:09.433 回答