警告../node_modules/ng2-charts/fesm5/ng2-charts.js 230:54-72在"@ angular/core"中找不到“导出'ɵɵdefineInjectable" [英] WARNING in ./node_modules/ng2-charts/fesm5/ng2-charts.js 230:54-72 "export 'ɵɵdefineInjectable' was not found in '@angular/core'
问题描述
我在Angular 7
应用中使用ng2-charts
并发出警告
I am using ng2-charts
in Angular 7
app and having warning
./node_modules/ng2-charts/fesm5/ng2-charts.js中的警告230:54-72 在'@ angular/core'中找不到导出'ɵɵdefineInjectable'
WARNING in ./node_modules/ng2-charts/fesm5/ng2-charts.js 230:54-72 "export 'ɵɵdefineInjectable' was not found in '@angular/core'
VS Code
browser
可能是什么原因以及如何解决?
What could be the reason and how to resolve it?
推荐答案
ng2-charts v2.2.4
具有此错误,因为许多用户报告说,降级为ng2-charts v2.2.3
很好,直到在将来的版本中修复该问题为止./p>
ng2-charts v2.2.4
has this bug as lots of users are reporting that so down-grading to ng2-charts v2.2.3
is fine until it is fixed in the future releases.
npm install ng2-charts@2.2.3
这篇关于警告../node_modules/ng2-charts/fesm5/ng2-charts.js 230:54-72在"@ angular/core"中找不到“导出'ɵɵdefineInjectable"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!