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
Describe the bug
Wrong svelte(missing-declaration) warning when using a variable on the same slot node where it was instantiated via a let:X statement but using it before that instantiation.
produces a wrong svelte(missing-declaration) warning for bar. If I put class:bar behind let:bar, the error goes away. Code compiles just fine in both cases.
Expected behavior
No warning.
Information about your Svelte project:
Any browser, any system, Svelte 3.32.3
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Describe the bug
Wrong
svelte(missing-declaration)
warning when using a variable on the same slot node where it was instantiated via alet:X
statement but using it before that instantiation.To Reproduce
This code
produces a wrong
svelte(missing-declaration)
warning forbar
. If I putclass:bar
behindlet:bar
, the error goes away. Code compiles just fine in both cases.Expected behavior
No warning.
Information about your Svelte project:
Any browser, any system, Svelte 3.32.3
Severity
Inconvenient, an easy workaround exists
Additional context
Originally reported by @brunnerh in sveltejs/language-tools#817 (comment)
The text was updated successfully, but these errors were encountered: