VUE开发之异常篇

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

 
posted @ 2020-04-08 14:20  SuPair  阅读(806)  评论(0编辑  收藏  举报