Expo + NextJs web ReferenceError: window is not defined #1940
cmaycumber
started this conversation in
General
Replies: 1 comment 1 reply
-
This is fixed in 5a449ec. You can eject from managed workflow and use a patch-package to apply this commit for the time being or wait until the next expo release. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm running into the following error: `ReferenceError: window is not defined on an app running expo and NextJS when Next is trying to use serverside rendering.
The faulty file is here:
react-native-reanimated/lib/reanimated2/js-reanimated/JSReanimated.js:33:9
.After changing the following line of code from:
to:
It solved my error.
My question is my configuration wrong or is this just a bug with serverside rendering? Does adding this check affect anything else?
Beta Was this translation helpful? Give feedback.
All reactions