1、WebStorm 编译器报错: Unresolved function or method require()

 

 

 

解决办法:

 

打开WebStorm 按照以下路径寻找

Preferences -> Languages & Frameworks -> Node.js and NPM -> Coding assistance for Node.js

勾选 Coding assistance for Node.js

 

 

 

配置后解决问题:

 

 

参考:https://stackoverflow.com/questions/20136714/how-can-i-fix-webstorm-warning-unresolved-function-or-method-for-require-fi

 

版权声明:本文为SuPair原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.cnblogs.com/SuPair/p/12659682.html