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
For some reason, in versions >= 4.1.2 we're receiving Cannot find name TypeScript errors when referencing the types of deconstructed object attributes.
Reproduction
Reference a type from an attribute of a deconstructed MeltUI object
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
For some reason, in versions >= 4.1.2 we're receiving
Cannot find name
TypeScript errors when referencing the types of deconstructed object attributes.Reproduction
Here is a reproducible StackBlitz: https://stackblitz.com/edit/vitejs-vite-6bxyet7n?file=src%2Flib%2FCounter.svelte
Just run
npm run check
with different svelte-check versions.Expected behaviour
Should not error
System Info
Which package is the issue about?
svelte-check
Additional Information, eg. Screenshots
Reproducible example using the MeltUI library:
Kapture.2025-01-09.at.16.46.45.mp4
svelte-check output:
Kapture.2025-01-09.at.16.45.01.mp4
While in version 4.1.1, the type is resolved correctly and no errors are shown:
The text was updated successfully, but these errors were encountered: