Skip to content

[Bug]: using <Chart> in production builds has a chart type error #1199

@glend1

Description

@glend1

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

the chart fails to render on production builds it gives an error that says the chart type isn't registered. however it passes typescript checking.

Reproduction

https://codesandbox.io/s/github/reactchartjs/react-chartjs-2/tree/master/sandboxes/chart/multitype?from-embed=&file=/App.tsx

chart.js version

4.4

react-chartjs-2 version

5.2

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