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
Would you like to work on a fix?
Current and expected behavior
I’m currently getting the following error:
Which looks the same as https://github.com/reactchartjs/react-chartjs-2/issues/669.
I’m on
react-chartjs-2@3.3.0
andchart.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
andchart.js@3.9.1
, but still getting errors: