Closed
Description
Describe the bug
Code such as <slot name="a" slot="a" let:abc abc={abc}>
throws a compiler error in Svelte 5 that "slot can only receive attributes, not directives". This works fine on Svelte 4.
This is mostly a problem when using old code or libraries that contain this syntax.
Reproduction
See Component2.svelte
for where the error occurs
Svelte 4 Equivalent REPL that works
Logs
No response
System Info
Svelte REPL
Severity
blocking an upgrade