Open marekdedic opened 2 weeks ago
Related to/essentially duplicate of:
(That issue still should be moved somewhere that isn't the SvelteKit repository.)
Yeah it is, sorry, didn't find it... So, should I close this? Or is the actual issue here in svelte2tsx
?
Describe the bug
Hi, I'm getting an error when deriving from a value caused by the fact that at the point the derived rune is used, the original variable has a fixed value:
Reproduction
I get
Error: Property 'find' does not exist on type 'never'.
Expected behaviour
No error
System Info
Which package is the issue about?
svelte-check
Additional Information, eg. Screenshots
https://svelte.dev/playground/feba78a349b34e49aedc626604866047?version=5.1.12
Looking at the JS output, the error makes sense.
In my actual usecase, I'm binding the variable
one
.