First of all, thank you for this amazing svelte-kit-cookie-session package!
When I use it in dev mode, everything works perfectly.
But when I build my app and start it, the session deletion fires this error message:
TypeError: 'set' on proxy: trap returned falsish for property 'destroy'
After some testing I found the location of the error in initialize.tsline 104:
if (sessionCookie.length === 0) return false;
Setting the return value to true resolves the issue.
First of all, thank you for this amazing svelte-kit-cookie-session package! When I use it in dev mode, everything works perfectly. But when I build my app and start it, the session deletion fires this error message:
TypeError: 'set' on proxy: trap returned falsish for property 'destroy'
After some testing I found the location of the error in
initialize.ts
line 104:if (sessionCookie.length === 0) return false;
Setting the return value to
true
resolves the issue.