Abel Misiochaabelmisiocha.hashnode.dev·Jul 24, 2024Fixing "Window Not Defined" Error in Next.js with ApexChartsSo this is the second time I am getting this error, first time it happened while I was using react-apexcharts. And this time around I was using react-apexcharts. The first time I was using NextJs 13. Just after its release so I think the Apexcharts t...Next.js
Nirdesh pokharelblog.nirdeshpokhrel.com.np·Oct 31, 2023Nextjs : (window is not defined) react-apexchartsApex Charts tries to access the window object without checking it is available first, so it does not work in server contexts.The workaround is to ensure the library is only used in a browser context. In NextJS, the usual method of ensuring a module o...724 readsNext.js