Skip to content

Error when creating an accessor for an prop #10311

@Thiagolino8

Description

@Thiagolino8

Describe the bug

When creating an accessor to an prop without using svelte:options, If you create an accessor for a binded prop using export its value becomes an internal function, if you try to export a prop that is used as an object the compiler tries to export using a variable that is never declared

Reproduction

repl

Logs

No response

System Info

Svelte v5.0.0-next.40

Severity

annoyance

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