Resolve the ReferenceError: window is not defined in Next.js 14 by dynamically importing ApexCharts with ssr false to prevent server-side execution.