警告../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'

查看:338
本文介绍了警告../node_modules/ng2-charts/fesm5/ng2-charts.js 230:54-72在"@ angular/core"中找不到“导出'ɵɵdefineInjectable"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆