Hello everybody!
I have a problem in a NextJS v14+ App Router application.
I’m following this document: Using OpenReplay with Next.js - OpenReplay Documentation
I have the following error:
ReferenceError: window is not defined
Hello everybody!
I have a problem in a NextJS v14+ App Router application.
I’m following this document: Using OpenReplay with Next.js - OpenReplay Documentation
I have the following error:
ReferenceError: window is not defined
The issue happens because you’re running browser code in server env. Convert the component into “use client” or use dynamic imports.
You can use globalThis
property