TypeError: this.CliEngine is not a constructor TypeError: this.CliEngine is not a constructor at ESL

The vue format file .eslintrc.js in webstorm reports an error TypeError: this.CliEngine is not a constructor TypeError: this.CliEngine is not a constructor at ESL, the solution is to modify eslint-plugin.js, the path is:

D:\A_InstallSoftWare\Web\WebStorm_2018.2.3\WebStorm 2018.2.3\plugins\JavaScriptLanguage\languageService\eslint\bin\eslint-plugin.js

将  this.CliEngine = require(this.basicPath + "lib/cli-engine");

改为:this.CliEngine = require(this.basicPath + "lib/cli-engine").CLIEngine;

Then select the file with the left mouse button, and select the red box with the right mouse button.

 

Guess you like

Origin blog.csdn.net/weixin_41267342/article/details/108165416