I am having the same issue after upgrade but with java classes. Was working on some code...upgraded...went back to coding...no suggestions on any code completes, no auto import etc.
Using Intellij Ultimate 2019.3, Ubuntu Linux 18.10, java 11
As I said it broke after the latest upgrade, I've never had this module installed in my projects. But just for the sake of testing I npm installed this module and no luck, still not working...
Just to make sure, I uninstalled WebStorm, deleted all "settings" folders and re-installed webstorm with fresh new settings (didn't import old settings).
It works just fine after deleting .idea I notice my syntax color is messed up. If I reload Webstorm, then syntax color is fixed but the autocomplete no longer works.
please provide a complete code snippet (as text)
Something like that:
works for me:
do you have node_modules\csstype included in index?
I have started a new clean project, just npm installed "react" and "prop-types", you can see the entire node_modules
I am having the same issue after upgrade but with java classes. Was working on some code...upgraded...went back to coding...no suggestions on any code completes, no auto import etc.
Using Intellij Ultimate 2019.3, Ubuntu Linux 18.10, java 11
@Kkarski your issue is clearly different; if invalidating caches doesn't help, please create a support ticket
@ValYouW you need https://github.com/frenic/csstype package for CSS completion/type checking in JavaScript, it won't work without this module
As I said it broke after the latest upgrade, I've never had this module installed in my projects. But just for the sake of testing I npm installed this module and no luck, still not working...
>As I said it broke after the latest upgrade, I've never had this module installed in my projects.
But completion doesn't work in previous versions when using project like yours. Screenshot from 2019.2.4:
>But just for the sake of testing I npm installed this module and no luck, still not working...
please try also adding @types/react (`npm i @types/react`)
Just to make sure, I uninstalled WebStorm, deleted all "settings" folders and re-installed webstorm with fresh new settings (didn't import old settings).
Installed both csstype and react types, no help.
Here is a screencast of what I did:
https://www.dropbox.com/s/is3c1onwujpcpdj/zoom_0.mp4?raw=1
Found it - you need installing Styled Components and Styled JSX plugin to make this work:
Nope, no luck...
Nevermind, spent too much time on this, I give up for now.
I think this should be supported natively without any plugin/modules etc.
Actually this does seem like a bug.
It works just fine after deleting .idea I notice my syntax color is messed up. If I reload Webstorm, then syntax color is fixed but the autocomplete no longer works.
Working
Restart Webstorm - not working:
This is a bug:
https://youtrack.jetbrains.com/issue/WEB-37574
Solved! In my case it never worked.
I even tried to:
but nothing changed.
It turned out to be caused by an outdated @types/react version which was globally available to all projects;
What I did was simply download the latest version from Settings->Languages & Frameworks -> Javascript -> Libraries -> Download -> react
now it works as expected: