Thursday, January 31, 2019

An Empty WebStorm Project and Unresolved Require

When I started an empty Webstorm project to do some light dabbling in Node.js the IDE would not recognize some pretty basic node globals for autocomplete. (version 2018.3.3)


The resources and posts I found all used solutions which didn't work for me or could not carry them out.


The solution is to simply go into the Node and NPM settings menu (Settings | Languages & Frameworks | Node.js and NPM) and check "the box". The box which says "Coding Assistance for Node.js".


Apparently people have also noticed this on other projects which may not have started on empty. Un-checking and re-checking looks like it can help.

Good Luck!

- Victor F

No comments:

Post a Comment