How to fix WebStorm not recognizing some Node.js Express properties? How to fix WebStorm not recognizing some Node.js Express properties? express express

How to fix WebStorm not recognizing some Node.js Express properties?


This applies to almostly any JS project out there. You should explicitly define an object's properties or write JSDocs:

/** * @memberOf   myLib * or * @name       myLib.MyDynamicallyLoadedModule */var MyDynamicallyLoadedModule = {};

Otherwise, WebStorm cannot understand that you have dynamic properties.

(yeah, I know you're refering to Express, but that's how WebStorm works)