Whose Error Is It?

Node.js printed this

ReferenceError: window is not defined
What it meansCode that relies on the browser global window ran in Node, which has no window object, often during server side rendering.
The first thing to checkMove the browser only code into useEffect or behind a typeof window !== 'undefined' check, or load the library dynamically on the client only.

More from Node.js

All 75 errors

Whose Error Is It? · Status Menu · Back to the bar