apexcharts / react-apexcharts

📊 React Component for ApexCharts
https://apexcharts.com
MIT License
1.3k stars 152 forks source link

Uncaught (in promise) TypeError: can't access property "show", i is undefined #619

Open NRevillet opened 1 month ago

NRevillet commented 1 month ago

Hello everyone, I've got this error in my project when trying to add annotations to my chart. There is 4 charts on the page using the same template, and adding this code (test code from the official documentation):

annotations: { yaxis: [ { y: 8800, borderColor: '#00E396', label: { borderColor: '#00E396', style: { color: '#fff', background: '#00E396' }, text: 'Y-axis annotation on 8800' } } ] },

to the apex-chart causes the following crash on save :

image

and after this error, removing the code and saving makes react reload the page, but keeps throwing this error, but it goes away with a manual reload of the browser (this issue might be unrelated idk).

From what i've searched, this issue might be related to : https://github.com/apexcharts/react-apexcharts/issues/598 Thank you for any help you might provide 😄