WARNING in ./node_modules/ng2-charts/fesm5/ng2-charts.js 230:54-72 "export 'ɵɵdefineInjectable' was not found in '@angular/core'

后端 未结 2 350
余生分开走
余生分开走 2020-12-25 11:10

I am using ng2-charts in Angular 7 app and having warning

WARNING in ./node_modules/ng2-charts/fesm5/ng2-charts.js 230:54-72

相关标签:
2条回答
  • 2020-12-25 11:59

    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
    
    0 讨论(0)
  • 2020-12-25 12:00

    Right, you have to do npm install ng2-charts@2.2.3 --save Also, check into your package.json for "ng2-charts": "2.2.3", I also faced same issue but previously I had "ng2-charts": "^2.2.3", so I removed caret (^). It means "Compatible with version" it will install major version. But use "Fixed version" if you don't want to change version of package on each installation.

    0 讨论(0)
提交回复
热议问题