Open Legendofire opened 6 years ago
The documentation reads:
"You must also include chart.js and React as dependencies."
Run the following command:
npm install --save chart.js
The error message was after I installed chart.js, maybe I installed chartjs not chart.js. Will test it again.
@larsdouweschuitema This solved my problem. Thanks!
@larsdouweschuitema thank you !
Why not add chart-js
as an actual dependency in the package.json
file?
Please add these in angular.json file "scripts": [ "node_modules/chart.js/dist/Chart.js", "node_modules/hammerjs/hammer.min.js" ],
Install missing charts dependencies: charts.js & angular2-chartsjs I installed it locally and it worked. Don't forget to import these in your code.
I installed react-chartjs via NPM and when i try and use Pie i get the error Error Can't resolve 'chart.js' in '/home/a7meds3d/Documents/WorkSpace/MERN/CIOChatbot/node_modules/react-chartjs/lib'.