Replies: 1 comment
-
Here i some additional info on that in SO |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I decided it was time to do a clean update to a sveltekit project i've been working on. Upon running
npm install
after deleting/node_modules
andpackage-lock.json
, got bit by the following error__layout.reset has been removed in favour of named layouts:
. Just last night I watched Rich's talk on the new fetures in sveltekit, but I guess I didn't realize this was a breaking change. So in case anyone finds themselve in the same pickle, here is what I came up with, and so far it's working well.So my old layout scheme was something like this:
Simply renaming
[action]-[id_or_type].*
to[action]-[id_or_type]@editor.*
and__layout.reset.svelte
to__layout-editor.svelte
caused__layout-editor.svelte
to be embedded (nested) into__layout.svelte
The workaround I came up with was:
Where
__layout-reset.svelte
simply contains a single empty slot<slot />
This seems to reproduce the old behavior, although I admit I have only just started down this path but hope this helps someone get started down theirs.Beta Was this translation helpful? Give feedback.
All reactions