Open usmanmanii opened 7 months ago
I'm also seeing this same error using NextJS and setting use client
🤔
In my case, since I am not using ssr, I disable server side rendering in angular.json file in build options:
"prerender": false, "ssr": false
Im using Angular v17
Thank you, this solved my problem in Angular
For nextjs devs, a quick workaround is to sacrifice initial component loading
You have to dynamically import it with next/dynamic
import dynamic from next/dynamic;
const ReactApexChart = dynamic(() => import('react-apexcharts'), { ssr: false });
Description
I am getting
window is not defined.
Seems it is not yet supported with SSR. Is there a way out?Steps to Reproduce
@jackieleng Found same open thread here : https://github.com/apexcharts/ng-apexcharts/issues/112#issuecomment-1804853787