You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
I don't think resolving this one will fix 9797. This one comes up in a different part of the code that is more just around syntax checking, whereas 9797 looks like it comes up in a later compiler phase.
Uh oh!
There was an error while loading. Please reload this page.
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
Svelte 5 REPL
See
Component2.svelte
for where the error occursSvelte 4 Equivalent REPL that works
Logs
No response
System Info
Severity
blocking an upgrade
The text was updated successfully, but these errors were encountered: