event.locals.supabase type error
I am getting this error on my SvelteKit Auth SSR Setup. Note that this setup was from the official documentation and was working fine until now (https://supabase.com/docs/guides/auth/server-side/sveltekit):
hooks.server.ts (error scope) :


3 Replies
These are typescript errors, so it could be that you've upgraded library version since the last time it was working or sometimes your IDE needs to be restarted for these errors to go away.
Hmm, these are my typescript and supabase version/s. I also tried restarting IDE but it did not work:
"@supabase/ssr": "^0.6.1",
"@supabase/supabase-js": "^2.52.1",
"typescript": "^5.0.0",
"typescript-eslint": "^8.20.0",
Try deleting the
.svelte-kit
folder. It will automatically be regenerated.