react-apexcharts icon indicating copy to clipboard operation
react-apexcharts copied to clipboard

Strange Error on Microsoft Edge

Open 18601673727 opened this issue 5 years ago • 8 comments

I have couple of pages with charts inside, everytime perform url hash change(ex. click links on the menu), Edge would throw

0: Unable to get property 'querySelector' of undefined or null reference    apexcharts.common.js (6,1)

Have tried all shims/shams/polyfills/browserlist/X-UA-Compatible tricks, still got same error.

Library Version: apexcharts v3.17.1 Browser Version: Microsoft Edge 44.18362 Other Version: react-dom 16.13.1 with react-router 5.1.2

Please take look into this problem, thanks in advance!

18601673727 avatar Apr 04 '20 01:04 18601673727

Can you help debug this error? Please use the un-minified version of apexcharts - https://cdn.jsdelivr.net/npm/[email protected]/dist/apexcharts.js

import ApexCharts from 'apexcharts/dist/apexcharts.js'

Then, please post the full error when you change the URL.

I don't have windows at the moment, so getting a full error will help to add a check where the issue is occurring.

junedchhipa avatar Apr 04 '20 11:04 junedchhipa

Okay, hope this will help

1 2

The menu I've talked about is entirely isolated with this .apexcharts-menu, I don't even know what that is..

18601673727 avatar Apr 04 '20 14:04 18601673727

Thank you for sending the detailed error. Strangely, the querySelector should not return null unless the chart was not present on the document. I'll look into it more when I get on windows.

junedchhipa avatar Apr 04 '20 14:04 junedchhipa

Thank you for sending the detailed error. Strangely, the querySelector should not return null unless the chart was not present on the document. I'll look into it more when I get on windows.

Yes, some pages don't have charts in, so if I switch between non-chart pages, no errors at all, so I'm guessing the error occurs during the DOM destructuring phase. Or maybe our chart events should never been bind to the document node at the first place.

18601673727 avatar Apr 04 '20 15:04 18601673727

Also, please take a look at my other issue on OSX by any chance. Thank you! https://github.com/apexcharts/apexcharts.js/issues/1155

18601673727 avatar Apr 04 '20 15:04 18601673727

My users have been hitting this issue on edge as well

sontek avatar May 07 '20 19:05 sontek

This continues to be a problem for both IE11 and Edge

Screen Shot 2020-07-16 at 11 34 40 AM

sontek avatar Jul 16 '20 15:07 sontek

Any news regarding this issue?

giedriusvickus avatar Aug 13 '21 09:08 giedriusvickus