Skip to content

Tries to set computed properties, leading to errors in dev mode #893

@ekhaled

Description

@ekhaled

This REPL https://svelte.technology/repl?version=1.40.2&gist=06af5fed951e8b2931e9cfe65aa08e00

It tries to set the value of a computed property available_roles in the generated code.
While it works in the REPL, when you try to run it locally in dev mode, it throws errors Cannot set read-only property 'available_roles' on the console and causes unpredictable behaviour.

This does not happen when the bind:value in the <select> element is not a nested peoperty (i.e does not contain a dot . )

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions