Webstorm node require path resolution
I just upgraded to webstorm 6.0 and I noticed that
the IDE doesn't complain about file paths that it cannot resolve in the require call.
For example in in webstorm 5
if I did something like
require("../../wrongFileName");
The IDE would put a squigly red underline under the string.
When I hovered over it, the IDE would give me hint saying It was not able to resolve the file. When I fixed it the file name the squigly red line would go away.
Version 6.0 doesn't seem to do that anymore.
Does anyone know if this is an option I have to turn on?
Please sign in to leave a comment.
Is the "require" name highlighted? If yes, you need to enable "Node.js globals" lib for your project: File -> Settings -> JavaScript -> Libraries.
Kirill
Thank you so much, that did the trick! :D