app开发定制公司ESLint: TypeError: this.libOptions.parse is not a function - Webstorm

: TypeError: this.libOptions.parse is not a function - Webstorm

ESLint: TypeError

ESLint 在 中出现 TypeError: this.libOptions.parse is not a function app开发定制公司错误的原因及修复办法。

问题描述

如果你正在使用 ESLint 8.23.x 和 WebStorm 2022.2.x 或 2022.2.x。
那么你可能会遇到 TypeError: this.libOptions.parse is not a function
这是 ESLint 8.23.x 中的一个bug。ESLint 团队正在努力解决这个问题,希望很快就能解决。
在此之前,解决方法是将你的 ESLint 的版本降至8.22。

修复办法

执行以下命令安装 ESLint 8.22 版本:

npm install eslint@8.22.0 --save-exact
  • 1

或者,你还可以按以下步骤降低版本:

  1. 删除 node_modules 目录
  2. 删除 package-json.lock 文件
  3. 修改 package.json 中 ESLint 版本为 8.22.0
  4. 执行命令重新安装 npm install

如果你喜欢命令的话,你也可以这么做:

# macosrm -rf node_modules; rm package-lock.json; npm install
  • 1
  • 2
网站建设定制开发 软件系统开发定制 定制软件开发 软件开发定制 定制app开发 app开发定制 app开发定制公司 电商商城定制开发 定制小程序开发 定制开发小程序 客户管理系统开发定制 定制网站 定制开发 crm开发定制 开发公司 小程序开发定制 定制软件 收款定制开发 企业网站定制开发 定制化开发 android系统定制开发 定制小程序开发费用 定制设计 专注app软件定制开发 软件开发定制定制 知名网站建设定制 软件定制开发供应商 应用系统定制开发 软件系统定制开发 企业管理系统定制开发 系统定制开发