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

webstorm中vue格式化文件.eslintrc.js,报错TypeError: this.CliEngine is not a constructor TypeError: this.CliEngine is not a constructor at ESL,解决办法,修改eslint-plugin.js,路径为:

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;

然后鼠标左键选中文件,鼠标右键,选中红色框。

TypeError: this.CliEngine is not a constructor TypeError: this.CliEngine is not a constructor at ESL_第1张图片

 

你可能感兴趣的:(Vue)