-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tries to set computed properties, leading to errors in dev mode #893
Comments
Yeah this looks like a bug to me. In the input event handlers, both the |
Yeah, seems like 2 bugs:
|
Just took another look at this and wow it got confusing quick. It looks to be related to the fix for #639 / #642. @Rich-Harris When compiling the component in the above REPL link, would you expect |
This is fixed in 1.41.3 |
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 errorsCannot 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.
)The text was updated successfully, but these errors were encountered: