首页 > 解决方案 > Angular - 无法在 isAngularDecoratorMetadataExpression 读取未定义的属性“种类”

问题描述

我使用了 Angular 8.2.0 版。我想用这个命令构建:

ng build --aot=true --prod --build-optimizer --configuration=dev --outputHashing=all

但我得到了这个错误:

ERROR in ./node_modules/ng2-material-dropdown/fesm5/ng2-material-dropdown.js

TypeError: Cannot read property 'kind' of undefined at isAngularDecoratorMetadataExpression

我的项目中唯一的用法ng2-material-dropdownngx-chips. 我已经更新ngx-chips了版本,但它不起作用。

ps 我用 "typescript": "~3.5.3"

有什么建议吗?

标签: angulartypescript

解决方案


我在 ngx-chips 上创建了一个问题,他们在最新版本的 ngx-chips 中解决了它

https://github.com/Gbuomprisco/ngx-chips/issues/912


推荐阅读