-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Closed
Labels
Description
Describe the bug
When you have a simple component that is forwarding a children
slot in Svelte 4 and migrate to Svelte 5 it doesn't work correctly. It causes infinite recursion where snippet is calling itself.
#14127 / #14090 has already fixed named snippet and works really well, we just missed children prop.
Reproduction
this is Svelte 4 code and click on migration it produces following
Logs
No response
System Info
System:
OS: macOS 14.6.1
CPU: (10) arm64 Apple M1 Max
Memory: 9.94 GB / 64.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 20.11.0 - ~/.nvm/versions/node/v20.11.0/bin/node
Yarn: 1.22.21 - /usr/local/bin/yarn
npm: 10.2.4 - ~/.nvm/versions/node/v20.11.0/bin/npm
Watchman: 2024.03.25.00 - /usr/local/bin/watchman
Browsers:
Brave Browser: 107.1.45.133
Chrome: 130.0.6723.92
Safari: 17.6
npmPackages:
svelte: ^5.0.0 => 5.1.3
Severity
blocking an upgrade