Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TypeError] TypeError: Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element' #604

Open
mohammad-aljamil opened this issue May 19, 2024 · 2 comments

Comments

@mohammad-aljamil
Copy link

Uncaught (in promise) TypeError: Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'.
at Function.value (react-apexcharts.js?v=38bd8fb7:253:18)
at t2.value (react-apexcharts.js?v=38bd8fb7:5796:24)
at t2.value (react-apexcharts.js?v=38bd8fb7:5717:966)
at t2.value (react-apexcharts.js?v=38bd8fb7:7719:23)
at t2.create (react-apexcharts.js?v=38bd8fb7:177:21)
at react-apexcharts.js?v=38bd8fb7:7794:23
at new Promise ()
at t2.value (react-apexcharts.js?v=38bd8fb7:7792:16)
at react-apexcharts.js?v=38bd8fb7:7873:81

@mohammad-aljamil mohammad-aljamil changed the title [Bug] TypeError: Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element' [TypeError] TypeError: Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element' May 19, 2024
Copy link

github-actions bot commented Aug 2, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@youngPerson1999
Copy link

When changing the screen width in a responsive web application, the error mentioned above occurs.
And I am loading the chart as shown above.
const Chart = dynamic(() => import('react-apexcharts'), {
ssr: false,
loading: () => ,
});
(NextJS13, Chrome, Mac, apexcharts: 3.42.0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants