1. TypeError: this.CliEngine is not a constructor
点击 details,找到报错文件位置,如:
D:\Program Files\JetBrains\IntelliJ IDEA 2017.3.7\plugins\JavaScriptLanguage\languageService\eslint\bin\eslint-plugin.js:82:25
修改 eslint-plugin.js 文件:
在文件内找到 ESLintPlugin 方法,
将this.CliEngine = require(this.basicPath + "lib/cli-engine");
更改为 this.CliEngine = require(this.basicPath + "lib/cli-engine").CLIEngine;
重启。