Deant Deant - 2 years ago 268
Node.js Question

Using Node.Js Globals in WebStorm 2016

I recently upgraded to WebStorm 2016 from WebStorm 9 for debugging my NodeJS projects. But I cannot seem to find any option to enable NodeJS Globals like in WebStorm 9 (I can only enable NodeJS Core).

How can I enable NodeJS Globals and NodeJS Core in WebStorm 2016?

Answer Source

res.render is an Express framework method, it's not a part of Node.js core. You need to download the Typescript community stubs for express, express-serve-static-core and serve-static modules to get Express methods resolved: Settings | languages & Frameworks | javaScript | Libraries, press Download..., choose needed modules from the list

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download