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;

重启。

posted on 2021-01-30 19:19  W1N9s  阅读(1122)  评论(0编辑  收藏  举报