kurkle / chartjs-plugin-gradient

Easy gradients for Chart.js
MIT License
37 stars 6 forks source link

Got some problems in console #39

Closed beastovsk closed 1 year ago

beastovsk commented 1 year ago

react-dom.development.js?ac89:22839 Uncaught TypeError: Cannot read properties of undefined (reading 'datasetIndex') at updateLegendItems (chartjs-plugin-gradient.esm.js?52eb:223:1) at Object.afterUpdate (chartjs-plugin-gradient.esm.js?52eb:339:1)

stockiNail commented 1 year ago

@beastovsk can you provide a sample in order to reproduce the issue?

beastovsk commented 1 year ago

Next.js v13.0, the application did not work with the errors that I indicated above. When opening a page with a component in which chartjs-plugin-gradient was located, the application crashed. After I removed the package from node_modules, everything worked.

stockiNail commented 1 year ago

I have created a sandbox which sounds working. https://codesandbox.io/s/nextjs-chartjs-demo-forked-n6561s It's difficult to say what it's going wrong without any additional info.

beastovsk commented 1 year ago

To be honest, I have no idea what could have caused the error. Thank you for your time, if I get more information - I will send you