I am trying to create a simple TypeScript project in WebStorm that imports the Node.js. module I loaded the definition of the corresponding TypeScript library in the settings and specified --module commonjsin the compiler settings, but when I try to import the module, I get an error Cannot find external module.
This is the simplest example that I can think of. What am I missing here?



source
share