svelte-intellij icon indicating copy to clipboard operation
svelte-intellij copied to clipboard

Component doesn't see values imported in external script file

Open pavel-krasnov opened this issue 3 years ago • 0 comments

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

pavel-krasnov avatar Dec 31 '21 12:12 pavel-krasnov