Skip to content
Advertisement

Tag: clevertap

Server Error ReferenceError: window is not defined in Next.js

I’m trying to integrate CleverTap into my Next.js app. Followed the documentation Web SDK Quick Start Guide but facing issue: Server Error ReferenceError: window is not defined in Next.js _app.tsx cleverTapHelper.ts cleverTap.d.ts Window object should not be undefined but getting undefined! What’s going on? Answer This is because NextJS is trying to execute that function on the server because it

Advertisement