Closed beastovsk closed 1 year ago
@beastovsk can you provide a sample in order to reproduce the issue?
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.
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.
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
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)