Skip to content

[Bug]: React v19 incompatibility #1308

@mds2000

Description

@mds2000

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 upgraded my React version to v19 and started having this issue only in the page I load Chartjs components.
"A React Element from an older version of React was rendered. This is not supported."
Image

Reproduction

  • Upgrade React version to >=19.0.0
  • Create a page containing a Chart.js component
  • Open dev tools console

chart.js version

4.5.1

react-chartjs-2 version

5.3.0

Possible solution

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions