Replies: 4 comments 12 replies
-
you can used groupings, https://kit.svelte.dev/docs/advanced-routing#advanced-layouts-group |
Beta Was this translation helpful? Give feedback.
-
I'm in the same boat. I understand I can use groups as an alternative, but shouldn't this work as-is? The docs say |
Beta Was this translation helpful? Give feedback.
-
To reset a layout create a blank root layout
|
Beta Was this translation helpful? Give feedback.
-
Maybe I'm severely missing something, but I really can't figure out how to reset the layout. I think I'm doing as suggested to remove the layout from the I've also tried with the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've just updated to the latest version of SvelteKit. I was on 1.0.0-next.405, the last version before all the massive route changes, and my (sizeable) app is working fine on that version.
After running the migration tool and launching "npm run dev", the first error I get is for a reset layout I have somewhere in a route.
My layouts are pretty simple: I have one
+layout.svelte
at the root, and sometimes I need to completely reset it so that there's just a<slot />
The docs say:
So I've put a
[email protected]
file (with just<slot />
) where I want the layout to reset, but it's telling me:my-route/[email protected] references missing layout "
How shall I do a simple layout reset then?
Beta Was this translation helpful? Give feedback.
All reactions