PhpStorm 2019.3 Help

Code Inspection: Missing require() statement

Checks that all modules are referenced through require().

Suggests inserting the require() call.

Checks that all modules are referenced through require().

Works only in files in the scope of Node.js Core JavaScript library.

Checks that all modules are referenced through require().

When using libraries that define their own global symbols outside their visible JavaScript code (e.g. describe() in Mocha),
it is recommended that you add the corresponding TypeScript type definition file as a JavaScript library in Preferences | Languages & Frameworks | JavaScript | Libraries.

Last modified: 20 February 2020