Closed mmailaender closed 4 months ago
If you rename the children
slot to any other name, does the error go away? If so, it's probably related to https://svelte-5-preview.vercel.app/docs/breaking-changes#the-children-prop-is-reserved which reserves the children
name for props. If that's the cause, the compiler may need a warning for slots named children
as well, which may not have happened yet because slots are deprecated in Svelte 5 and so they haven't received as much development attention up till now.
Unfortunatly, I can't test it, because the error is coming from a library called skeleton
See https://github.com/skeletonlabs/skeleton/issues/2502 - they have a property called children
which is reserved in Svelte 5. We should see if we can come up with a way to not break when someone uses a children
prop but uses slots.
Describe the bug
Running with Svelte 5 creates the following critical error (But with Svelte 4 everything works fine)
Reproduction
Alternatively open the following GitPod link: https://gitpod.io/?autostart=true#https://github.com/mmailaender/svelte5
Logs
No response
System Info
Severity
blocking an upgrade