-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Labels
Description
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
Description ⚠️
I have a project that uses react-chartjs-2 and the 18th version of react and everything used to work just fine. However when I tried to upgrade to React 19, the installation fails when attempting to install dependencies.
The error occurs because I saw @react-chartjs-2 has a peer dependency requirement for react@^16.x || ^17.x || ^18.x, but the project is using React 19.0.0-rc-69d4b800-20241021.
The installation works fine with React 18, but I haven't found a workaround. This are some posibble solutions:
- Update
@react-chartjs-2peer dependencies to include React 19 - Add a note in the documentation about React 19 compatibility
- Add a version check in the CLI to warn users about React 19 compatibility issues
Reproduction
https://github.com/Erod-star/react-chartjs-2-react-19-issue
chart.js version
5.2.0
react-chartjs-2 version
5.2.0
Possible solution
No response
eugene-at-cribl, gemyago and deviun
