Would you like to work on a fix?
Current and expected behavior
While testing the v5.3.1 update I started getting test failures I was not getting in v5.3.0 with vite & vitest. Downgraded just to confirm and reapplied the update and get the following error:
Error: Cannot find module 'node_modules/react/jsx-runtime' imported from node_modules/react-chartjs-2/dist/index.js
Did you mean to import "react/jsx-runtime.js"?
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_MODULE_NOT_FOUND', url: 'file:///node_modules/react/jsx-runtime' }
Reproduction
Trying to use a Bar chart in a component in a test
chart.js version
v4.5.1
react-chartjs-2 version
v5.3.1
Possible solution
It seems like #1309 is the underlying change
Would you like to work on a fix?
Current and expected behavior
While testing the v5.3.1 update I started getting test failures I was not getting in v5.3.0 with vite & vitest. Downgraded just to confirm and reapplied the update and get the following error:
Reproduction
Trying to use a
Barchart in a component in a testchart.js version
v4.5.1
react-chartjs-2 version
v5.3.1
Possible solution
It seems like #1309 is the underlying change