Weird 404 Server Error When Using Grouped Layouts #12481
Replies: 3 comments 1 reply
-
I'm also using groups and the SvelteKit error keeps pointing to a route that has public in it, but actually it is (public). Other than that, all works (but annoying af) |
Beta Was this translation helpful? Give feedback.
-
I can't seem to reproduce it locally or through stackblitz https://stackblitz.com/~/github.com/MattHeslington/sveltekit-404-bug |
Beta Was this translation helpful? Give feedback.
-
I tried in hooks.server.ts to console log event properties (in authGuard) and got some discrepancies in the URLs while I accessed my /login page, which also was in a grouped layout
Expected output:
Fix (for now, seems to have worked) I am still looking, though, for code that modifies the pathname somewhere; I have not been able to identify it so far. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I have a page in a grouped layout making a call to a simple api endpoint. When 'hello world' is returned to the page, I get the following error in the server console:
Bearing in mind this is the page I'm on and the page which is making the api call.
My folder structure is like this:
It doesn't break anything, it's just annoying. Does anyone know what's causing this, please?
I have a minimal reproducable example (or whatever it's called) here:
GitHub Repo
Any help would be very, very much appreciated. I've spent hours on this trying to work out what's causing the problem after initally being convinced it was Supabase auth code which was causing it.
Many thanks,
Matt
Beta Was this translation helpful? Give feedback.
All reactions