Skip to content

Assigning to rvalue is a bad error message #9495

@olehmisar

Description

@olehmisar

Describe the bug

Error says "Assigning to rvalue". It should say "Assigning to derived state".

Reproduction

<script>
  let name = $derived(0)
</script>

<input bind:value={name} />

REPL

Logs

No response

System Info

\-

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