-
-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
window is not defined
error in _initialize()
#1021
Comments
ReferenceError: window is not defined
error in _initialize()
window is not defined
error in _initialize()
This is reproducible for me, in SvelteKit, but doesn't affect my app's behavior. aka, it does not crash the app, but if I go into the I believe the rest of that initialize code is only relevant for client-side. |
I'm not sure. I found it while debugging an issue with |
@kangmingtay do you recall why I know |
Have you tried passing |
Yes, but that alone doesn't help. The hydration issue is not consistent. When reloading the page, about 50% of the time it works fine, and the other 50% doesn't. That's likely an error on my side, though. |
@azzazzel if you'd like, post on the Discord server and maybe someone can help with your original issue. I'll chime in if I can. https://discord.gg/TmJfUCy5 if you're not already on there. |
It turned out the hydration issue was due to a missing While throwing this error on the server side doesn't break the app, I'd suggest "fixing" it anyway. It'll make debugging less confusing for people who are not super familiar with the codebase. Thank you for your help @j4w8n! |
Bug report
Describe the bug
This change 9751b80#diff-3522461172efd6058d6b8da62fc2d30d8b524d2b64894ea2c67218c52f7fdff5R310 seems to introduce a
ReferenceError: window is not defined
error when initializingauth
server-side viacreateServerClient
from@supabase/ssr
To Reproduce
The error occurred in a Nuxt.js app however it should be reproducible by
in any SSR-based app.
System information
The text was updated successfully, but these errors were encountered: