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


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?

Comment actions Permalink

Is the "require" name highlighted? If yes, you need to enable "Node.js globals" lib for your project: File -> Settings -> JavaScript -> Libraries.


Comment actions Permalink

Thank you so much, that did the trick! :D


Please sign in to leave a comment.