# \#nextjs

**URL:** https://forum.openreplay.com/tag/nextjs/97.md

[Latest](https://forum.openreplay.com/latest.md) · [Categories](https://forum.openreplay.com/categories.md) · [Tags](https://forum.openreplay.com/tags.md)

---

## [Error (window is not defined) when using NextJS v14](https://forum.openreplay.com/t/error-window-is-not-defined-when-using-nextjs-v14/49)

<div class="topic-metadata">

**Author:** [@dave-the-developer](https://forum.openreplay.com/u/dave-the-developer)\
**Replies:** 2\
**Last updated:** [January 30, 2025, 12:35pm UTC](https://forum.openreplay.com/t/error-window-is-not-defined-when-using-nextjs-v14/49 "2025-01-30T12:35:26Z")

</div>

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 n…

---

## [ReferenceError: Window is not defined when using NextJS](https://forum.openreplay.com/t/referenceerror-window-is-not-defined-when-using-nextjs/104)

<div class="topic-metadata">

**Author:** [@dave-the-developer](https://forum.openreplay.com/u/dave-the-developer)\
**Replies:** 1\
**Last updated:** [May 13, 2024, 2:01pm UTC](https://forum.openreplay.com/t/referenceerror-window-is-not-defined-when-using-nextjs/104 "2024-05-13T14:01:10Z")

</div>

Hi there, I just try again to setup OpenReplay with Next.js (version 14 - latest), and it breaks on my site, here’re my steps: • Just init Next.js application, deployed to Vercel successfully • Then create \<TrackerPro…
