Closed Raphael2b3 closed 1 week ago
I just realized this is not an issue of svelte but of vscode in general. Maby svelte could add an extra check for it.
closing because of wrong place to ask
This happens because there are no imports or exports in that module, which means typescript treats all definitions inside it as globally available. I don't exactly remember why, but it's like that for some reason
Describe the bug
My vscode shows me i have access to a $state-variable declared in another file even i didnt export and import it.
See the video
It
mystate
should not show up.I am sry if this is the wrong place to post this issue.
Reproduction
run
npm create svelte@latest
-skeleton, svelte-5 preview(I have noticed that this command installs
"svelte": "^5.0.0-next.1"
even tho there is^5.0.0-next.123
already)i have updated svelte via
npm i -D svelte@next
https://github.com/sveltejs/svelte/assets/70175424/b40a5f14-fd5b-47b0-b82b-e7dea6c764d9
Logs
No response
System Info
Severity
annoyance