ESLint抛错(MacOS)

TypeError: this.cliEngine is not a constructor

# 修改配置文件
⁨应用程序⁩ ▸ ⁨PyCharm⁩ ▸ ⁨Contents⁩ ▸ ⁨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;
# 重启APP应用

相关文章:

  • 2021-10-13
  • 2021-05-24
  • 2022-12-23
  • 2022-12-23
  • 2021-07-15
  • 2021-12-06
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-08
  • 2021-09-18
  • 2021-09-03
  • 2022-01-22
  • 2021-08-22
  • 2022-12-23
相关资源
相似解决方案