-
Notifications
You must be signed in to change notification settings - Fork 46
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 (SvelteKit) #81
Comments
probably something changed with |
Tried with sveltekit....didn't see any error. Added sveltekit example as well |
By any chance is your app using TS? |
it is the same for my case. |
I also have such an error, adapter static is connected in svelte-kit and ssr is enabled.
|
ok let me add a condition to avoid same. |
please check with |
It didn't help, the error persisted( |
is it possible to provide a reproducible link? like a repo ? Or atleast branch out |
i am using sveltekit , this solution works for me, thanks |
Thanks for reproducer @AbramovYuri |
ok...looks like this can be sveltekit issue also. I am guessing code inside Anyways I will also debug via reproducer code shared by @AbramovYuri, to check if I can fix it in anyway that this is SSR compatible. |
I am at present fine to use Let know if you feel different. |
Raised issue with REPL to add support sveltejs/svelte.dev#844 |
thank you, it helped me, now I don't need to disable ssr anymore, the error is gone) |
This line:
is incompatible with a regular Svelte application (when no SvelteKit is used), it throws the error during compilation. |
yes..I am not going to publish a standard release, mostly until there is a package exposed. |
. |
This should have been fixed with v1 release. |
fixed in sveltejs/sites#105 |
Using the default example in the docs I'm getting:
Here's my
package.json
Likely an issue with SvelteKit.
The text was updated successfully, but these errors were encountered: