react-chartjs-2 icon indicating copy to clipboard operation
react-chartjs-2 copied to clipboard

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

Open glend1 opened this issue 2 years ago • 1 comments

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 avatar Oct 17 '23 12:10 glend1

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.

apirahman55 avatar Dec 06 '23 08:12 apirahman55