Skip to content

let directives with named slots are broken #8866

@harshmandan

Description

@harshmandan

Describe the bug

I am using let:directives to pass values down to components in named slots. It is working fine till the version 3.28.0.
Upgrading past that breaks the functionality with this error:

let:prop declared on parent component cannot be used inside named slot

Reproduction

Here's a REPL on version 3.28.0:

https://svelte.dev/repl/cf8a9290ad0547978399db0c6265522c?version=3.28.0

The same REPL on version 4.0.0:

https://svelte.dev/repl/cf8a9290ad0547978399db0c6265522c?version=4.0.0

Logs

No response

System Info

MacOS, Chrome v108

Severity

blocking an upgrade

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions