我使用了角版本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-dropdown是与ngx-chips相关的。我已经更新了ngx-chips版本,但它不起作用。
附注:我使用"typescript": "~3.5.3"
有什么建议吗?
发布于 2020-04-24 12:36:59
我在ngx芯片上制造了一个问题,他们用最新版本的ngx芯片解决了这个问题。
发布于 2020-07-10 07:17:06
从答案https://github.com/Gbuomprisco/ngx-chips/issues/912#issuecomment-554780546
我的直觉是,它可能是由于一个包版本(角-devkit/构建角):
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://stackoverflow.com/questions/58693158
复制相似问题