Angular 8 到 Angular 9 迁移

Angular 8 to Angular 9 Migration

库从 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

任何导致此错误的原因或它是什么意思?

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