Skip to main content

All Questions

3 votes
1 answer
353 views

svelte $state considered undefined by eslint?

My code runs fine which makes me think it comes from the linter. Also, when I close the file in VScode it's green, but when I open it it goes red. in my shared.svelte.js file: Here are the ...
16ar's user avatar
  • 175
0 votes
1 answer
269 views

VSCode throws error as if $props variable not accessible in HTML, in Svelte 5 component

With this Component code: <script> let { srcFile } = $props(); </script> <img src={srcFile}/> The reference to srcFile in the img tag throws an error as if the variable was never ...
escapecharacter's user avatar

X