How can I fix WebStorm warning “Unresolved function or method” for “require” (Firefox Add-on SDK)

后端 未结 13 1275
傲寒
傲寒 2020-12-04 10:38

I\'m using WebStorm 7 for Firefox Add-on SDK development.

WebStorm shows a warning: \"Unresolved function or method\" for require().

I want to g

相关标签:
13条回答
  • 2020-12-04 11:12

    In PHPStorm, it's a bit easier: you can just search for NPM in settings or:

    File > Settings > Language & Frameworks > Node.js and NPM
    

    Then click the enable button (apparently in new versions, it is called "Coding assistance for Node").

    0 讨论(0)
提交回复
热议问题