#[SOLVED] Window is not defined when running in SvelteKit using Adapter Static

4 messages · Page 1 of 1 (latest)

chilly cave
#

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!

tight ermine
worthy gulch
#

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

chilly cave