Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task
glend1 opened this issue Oct 17, 2023 · 1 comment
Open
1 task

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

glend1 opened this issue Oct 17, 2023 · 1 comment
Labels

Comments

@glend1
Copy link

glend1 commented Oct 17, 2023

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

@glend1 glend1 added the bug label Oct 17, 2023
@apirahman55
Copy link

apirahman55 commented Dec 6, 2023

I got the same issue, last 3 month ago my app success do production build without any issue but for now i don't know its goes error on production because chart type error. currently i solve this issue with my old lock files backup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants