ReferenceError: window not defined at __webpack_require__
Unanswered
Siamese Crocodile posted this in #help-forum
Siamese CrocodileOP
I am creating a ContextProvider where I am setting "use client" at the top. I also am running this specific bit of code inside an useEffect and checking for
Error:
typeof window !== undefined I honestly don't know what to do here. I am importing a file that has indeed code to call window but I thought my code would prevent this.Error:
node_modules/wslink/src/SmartConnect/index.js (36:44) @ eval
⨯ ReferenceError: window is not defined
at __webpack_require__