Automatically add module to project.json to resolve 'cannot find module' in typescript import statement

In a JavaScript file in Webstorm, when I add a require statement for a new module, I can add an entry to project.json dependencies automatically by right clicking on the module name. In a Typescript (.ts) file however, this option seems not available. It just says the module is not found ("TS2307: Cannot find module..."). Can I configure something to enable a similar functionality?

0
1 comment

Not possible currently; please vote for https://youtrack.jetbrains.com/issue/WEB-43159 to be notified on any progress with it

0

Please sign in to leave a comment.