tomblachut / svelte-intellij

Svelte components in WebStorm and friends
MIT License
485 stars 38 forks source link

Component doesn't see values imported in external script file #265

Closed pavel-krasnov closed 1 year ago

pavel-krasnov commented 2 years ago

When using a svelte-preprocess external files feature I create an external TypeScript file for a component and assign some values to variables in there and import something else to it, the Svelte component I then use this .ts file in marks the imports as not imported. On the other end, the value used in the component remains "unused" in the .ts files. The preprosessor itself works correctly and provides the values as it should.

Screenshot from 2021-12-31 13-24-19

Screenshot from 2021-12-31 13-24-34

tomblachut commented 1 year ago

Please open an issue on YouTrack, thank you!