
Hey guys, I'm trying out SvelteKit with Appwrite and using @sveltejs/adapter-static. I'm getting a error of 'window is not defined' when I run 'npm run dev'.
I have added export const prerender = true; in +layout.js in the root of routes folder.
Not sure what is wrong. Would like for some assistance or guidance on this.
Thanks in advance!

What exactly is throwing this?

Are you using realtime functionality? That might be problematic with static adapter and pre-renders.

Ahh sorry for the late reply. Didn't get notified.
Anyways, I fixed the problem. I imported in some extra Appwrite functions which I wasn't using and it was causing some issues.
Haven't tried realtime yet but will keep in mind if I come across this again. Thanks!

[SOLVED] Window is not defined when running in SvelteKit using Adapter Static
Recommended threads
- [FEATURE] Better usage analytics for app...
Recently, i've gotten **73** emails from appwrite regarding excesive GBHours usage. I've almost hit the limit of 1000 and it is really hard to track down which ...
- Images not showing up --
so i made this movie app - i hosted it successfully using appwrite but the images arent showing up --- https://movie-app-jsm.appwrite.network/ this is the movie...
- Cannot add/update array field
How do I add or update the rows, How exactly to pass properties? (see provided image)
