react-chartjs-2
react-chartjs-2 copied to clipboard
[Bug]: using <Chart> in production builds has a chart type error
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
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.