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

后端 未结 13 1393
傲寒
傲寒 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 10:58

    Ok, Here I have seen a lot of answers already given, I want to add some more that are fixed unresolved function/method/variable warning.

    That is resolved "unresolved function or method for 'require' and some other warning"

    Go -> Preferences-> Languages & Frameworks -> Node.js and NPM, then checkmark the "Coding assistance for Node.js"
    

    If you still see this type of warning, unresolved variable or something like that, you can manually disable these warnings by followings.

    Go -> Preferences-> Editor-> Inspections-> JavaScript-> General.  
    

    and you will find a list and just unchecked what warning you want to disable and then apply.

提交回复
热议问题