question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can not resolve chart.js

See original GitHub issue
ERROR in ./~/react-chartjs-2/lib/index.js
Module not found: Error: Can't resolve 'chart.js' in 'node_modules/react-chartjs-2/lib'

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:21
  • Comments:15

github_iconTop GitHub Comments

47reactions
jerairrestcommented, Aug 2, 2017

chart.js is a peer dependancy. make sure you include a version in your package.json yourself

39reactions
swordsreversedcommented, Feb 21, 2019

Don’t install chartjs like I did! Make sure to:

npm i chart.js

https://www.npmjs.com/package/chart.js?activeTab=readme

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: Can't resolve 'chart.js' in /node_modules/ng2-charts ...
ng2-charts is just an angular wrapper for Chart.js library. ... For me an older version was installed Try "npm install chartjs@3.7.1".
Read more >
Can't resolve 'chart.js' · Issue #220 · reactjs/react-chartjs - GitHub
I installed react-chartjs via NPM and when i try and use Pie i get the error Error Can't resolve 'chart.js' in ...
Read more >
Installation - Chart.js
No information is available for this page.
Read more >
Webpack Error "Can't resolve chart.js&#38
I'm getting "Can't resolve chart.js" when including mdbpro in my webpack config. This is the line in the webpack.config: import 'mdbootstrap-pro';. Do I ......
Read more >
Deploy error-- chart.js - Build debugging - Fly.io
I was able to solve this issue by changing from the npm install approach to including a local chart.js file in my assets...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found