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 . )
This REPL https://svelte.technology/repl?version=1.40.2&gist=06af5fed951e8b2931e9cfe65aa08e00
It tries to set the value of a computed property
available_rolesin the generated code.While it works in the REPL, when you try to run it locally in
devmode, it throws errorsCannot set read-only property 'available_roles'on the console and causes unpredictable behaviour.This does not happen when the
bind:valuein the<select>element is not a nested peoperty (i.e does not contain a dot.)