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
A store is created in a context="module" script tag, and it's being used with a dollar sign $ prepended to it, in the markup. It works as expected. However, the very same code in VS Code shows an error:
Note that it works and compiles properly, in other words, the compiler gives no errors; so it must be the Svelte VS Code extension that's the problem, basically it doesn't properly recognize any store that's been defined in the context="module" script, and as a result causing a red squiggly to appear under $count here.
Also, it's only when the lang="ts" attribute is present on the <script> tag that the red squiggly appears.