新版本ESLint报错
TypeError: this.cliEngine is not a constructor
点击details
在控制台显示报错的位置
1 | TypeError: this.cliEngine is not a constructor |
找到自己错误提示中下述文件的路径 打开
1 | plugins/JavaScriptLanguage/languageService/eslint/bin/eslint-plugin.js |
找到大概25行
把原来的
1 | this.cliEngine = require(this.basicPath + "lib/cli-engine"); |
替换为
1 | this.cliEngine = require(this.basicPath + "lib/cli-engine").CLIEngine; |
重启IDEA即可