Auto Import/Importing at all does not work with Sveltekit and Webstorm

Hi everyone,

currently the import functionality does not work at all with Webstorm and Sveltekit. When I want to import a component from my libs folder I get the suggestion like so

 

But when I accept this suggestion nothing will happen (btw the path shown in the screenshot is correct, that would be the correct import)



When I type it out, it will also not get suggested. It just gets marked red, without the typical “Import” menu entry. So currently its not possible to import at all.
 


 I tried this with Webstorm  (version: 2024.2.3) and  Webstorm EAP (version 2024.3). In none of this this will work. I am on a Macbook Air with an M3 chip.

Best Regards



 

0
3 comments

Unfortunately I failed to reproduce the issue:

Do you have a sample project you cab share that reproduces it?

0

Hi Elena,
yes I do, while preparing it for you I also found the real cause of the bug. The import with Webstorm will work, if the file name of the component starts with an Uppercase, so just like in your example it works because the name of your component is Counter. If it would be counter (with a lower case c) it will not work.

Here is an example repo I prepared for you

https://github.com/JangoCG/jetbrains-sveltekit-bug-demo

0

Please sign in to leave a comment.