Closed philmas closed 10 months ago
Well, I should take the docs more at face value apparently. For anyone wondering: the issue was that I called the file +layout.ts
instead of layout.ts
.
Reopening, I would like some input still. I still have issues on following the documentation now.
yeah, how can I help?
Well, I should take the docs more at face value apparently. For anyone wondering: the issue was that I called the file
+layout.ts
instead oflayout.ts
.
This is strange, because SvelteKit wants you to have the + in front. Without the + it's not a SvelteKit layout file and is likely ignored.
Well, I should take the docs more at face value apparently. For anyone wondering: the issue was that I called the file
+layout.ts
instead oflayout.ts
.This is strange, because SvelteKit wants you to have the + in front. Without the + it's not a SvelteKit layout file and is likely ignored.
It indeed seems it should be +layout.ts but for some reason I still get a session error. I have no idea why this happens to say the least. Perhaps I should start a fresh new project to try it out.
Were you using the supabase auth helper before? If so, and if there's still a valid browser cookie, then you'll need to delete the cookie. The way Supakit formats the auth cookie is different than the official auth helpers.
If that's not the case, then can you post some of the relevant code?
@philmas anything new on this?
Closing. No response after one week. Will re-open if needed.
Hello,
I have come across an issue.
Following your
Readme.md
and trying to implement:I obtain a typing error:
Property 'session' does not exist on type 'null'.ts
. When I run the code and try to open my page, I stumble uponTypeError: Cannot read properties of null (reading 'session')
and get the500
error.Do you know what I might be missing?