reactchartjs/react-chartjs-2

[Bug]: can’t resolve

hood opened this issue · 1 comments

hood commented

Would you like to work on a fix?

  • Check this if you would like to implement a PR, we are more than happy to help you go through the process.

Current and expected behavior

I’m currently getting the following error:

Can't resolve 'chart.js/auto' in '/Users/****/projects/****/node_modules/react-chartjs-2/dist’

Which looks the same as #669.

I’m on react-chartjs-2@3.3.0 and chart.js@3.9.1.

Am I missing anything? Reading the guides, this looks like it should work OOTB.

Reproduction

chart.js version

3.9.1

react-chartjs-2 version

3.3.0

Possible solution

No response

EDIT:
Also tried react-chartjs-2@4.3.1 and chart.js@3.9.1, but still getting errors:

Can't resolve 'chart.js/auto' in '/Users/****/projects/****/node_modules/react-chartjs-2/dist'

If you're trying to use a package make sure that 'chart.js/auto' is
installed. If you're trying to use a local file make sure that the path is
 correct.

File: node_modules/react-chartjs-2/dist/index.modern.js:1:0
hood commented

Never mind, project consuming it was, for unknown reason, pinning chart.js to an older version.