Skip to content

"ReferenceError: window is not defined" in Next.JS Project #44

Closed Answered by Yukigamine
Yukigamine asked this question in Q&A
Discussion options

You must be logged in to vote

Final update:

The reason "use client" was not working is because I was still using the older pages/ routing structure which only exists as backwards compatibility. Switching into the newer app/ router honored "use client" and it is working now.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Yukigamine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant