tomblachut / svelte-intellij

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

PHPStorm Components import marked as unused #159

Closed abstractFlo closed 3 years ago

abstractFlo commented 3 years ago

The current version marks some imports as unused like the router-view form @bjornlu/svelte-router

This is a problem, well the reformat code with optimized import removed this line.

Is there any solution to solve this problem?

image

Update the import with an alias, remove the warning

image

tomblachut commented 3 years ago

Current version has bugs around imports, there is no real workaround unfortunately - you could disable import optimisation during reformat for now.

abstractFlo commented 3 years ago

Aliasing the unresolved import is a good workaround too, phpstorm can now see the use for the import and it's fine. Not perfectly but fine :)

tomblachut commented 3 years ago

Should work in 0.14. Please reach out otherwise

abstractFlo commented 3 years ago

Works like a charm <3 thank you