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版本,但是它不起作用。

p.s。我使用"typescript": "~3.5.3"

有什么建议吗?

tnz1987 回答:Angular-无法读取isAngularDecoratorMetadataExpression上未定义的属性“种类”

我在ngx芯片上创建了一个问题,他们在最新版的ngx芯片中解决了该问题

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

,

从答案https://github.com/Gbuomprisco/ngx-chips/issues/912#issuecomment-554780546

我的直觉是它可能是由于软件包版本(angular-devkit / build-angular)造成的:

this is the version I use to build on v9: "@angular-devkit/build-angular": "^0.803.19"

this is the version I use to build on v8": "@angular-devkit/build-angular": "^0.803.8"

您可以尝试使用与上述相同的版本吗?还是分享您正在使用的确切版本?

本文链接:https://www.f2er.com/3166885.html

大家都在问