You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 19, 2019. It is now read-only.
Repository navigation
This repository was archived by the owner on Jul 19, 2019. It is now read-only.
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'.
"You must also include chart.js and React as dependencies."
Run the following command: npm install --save chart.js
Reacted by Divinorumz, Pouria, Louie Bertoncin, Dan, 周南, Renoj Varghese, Denis Oleshchenko, Miguel Angel Acevedo, Aaron Ching, MMartaGuerra and 14 more
Reacted by MMartaGuerra, Islam A. Mezied and Ezequiel Falduto
Why not add chart-js as an actual dependency in the package.json file?
Reacted by ordiovince, Troy Gibb, Brian Poteat, kumar Bitthal, Filat Astakhov, Juhana Leinonen, Emmanuel Di Iorio, Kamal Chapagain, Jonathan Beliën, Ezequiel Falduto and 2 more
Activity
larsdouweschuitema commentedon May 2, 2018
The documentation reads:
Run the following command:
npm install --save chart.jsenergetickoala commentedon May 2, 2018
The error message was after I installed chart.js, maybe I installed chartjs not chart.js.
Will test it again.
Tom-Gorup commentedon Jun 27, 2018
@larsdouweschuitema This solved my problem. Thanks!
amineb01 commentedon Sep 5, 2018
@larsdouweschuitema thank you !
gion commentedon Sep 28, 2018
Why not add
chart-jsas an actual dependency in thepackage.jsonfile?javaProgrammer44 commentedon Oct 24, 2018
Please add these in angular.json file
"scripts": [
"node_modules/chart.js/dist/Chart.js",
"node_modules/hammerjs/hammer.min.js"
],
kumarbitthal commentedon Jan 10, 2019
Install missing charts dependencies: charts.js & angular2-chartsjs
I installed it locally and it worked. Don't forget to import these in your code.