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
Under the hood the binding is transpiled to something like offsetWidth = div.offsetWidth, and so for TS offsetWidth is only reassigned but never read. But if this thing is used as a binding then it's obviously ok to never read it inside, because the outside will read it. The fix is to add a dummy-read in generated code somewhere, but I'm not sure yet how where to add this fix.
Describe the bug
Use bind shorthand with the prop, get error
'offsetWidth' is declared but its value is never read.ts(6133)
Reproduction
Run code below in VS code.
Expected behaviour
No error.
System Info
Which package is the issue about?
svelte-language-server
Additional Information, eg. Screenshots
The text was updated successfully, but these errors were encountered: