You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
index-a870eda6.js:83 CompileError: 'type' attribute must be a static text value if input uses two-way binding
at sr (compiler.cjs@5.0.0-next.15:1:226153)
at BindDirective (compiler.cjs@5.0.0-next.15:1:502150)
at r (compiler.cjs@5.0.0-next.15:1:305770)
at o (compiler.cjs@5.0.0-next.15:1:305833)
at r (compiler.cjs@5.0.0-next.15:1:305770)
at o (compiler.cjs@5.0.0-next.15:1:305833)
at Object.next (compiler.cjs@5.0.0-next.15:1:112832)
at r (compiler.cjs@5.0.0-next.15:1:305753)
at next (compiler.cjs@5.0.0-next.15:1:305809)
at _ (compiler.cjs@5.0.0-next.15:1:305020)
### System Info
```shell
svelte: `5.0.0-next.15`
Severity
blocking an upgrade
The text was updated successfully, but these errors were encountered:
techniq
changed the title
Svelte 5: bind:this no longer allowed dynamic type
Svelte 5: bind:this no longer allows dynamic type on <input>Nov 29, 2023
Describe the bug
In Svelte 4, you could use
bind:this
with a dynamic type..but in Svelte 5 (runes or non-runes mode), this throws a compiler error:
'type' attribute must be a static text value if input uses two-way binding
This was explicitly checked and allowed in Svelte 4, so likely a regression.
Reproduction
Logs
Severity
blocking an upgrade
The text was updated successfully, but these errors were encountered: