相关疑难解决方法(0)

'Parsing error: "parserOptions.project" has been set for @typescript-eslint/parser.' 是什么意思。IntelliJ IDE 系列中的错误?

当我打开.vue文件时,我的 IntelliJ IDEA 中出现以下错误:

Parsing error: "parserOptions.project" has been set for @typescript-eslint/parser.
The file does not match your project config: XX\XX\CurrentFile.vue.
The file must be included in at least one of the projects provided.
Run Code Online (Sandbox Code Playgroud)

在此处输入图片说明

当然,如果你教我解决方案,我会很高兴,但首先我知道它意味着什么以及为什么会出现。

我怀疑这是某种错误或不准确的错误消息。实验上已知:

  1. 有时它会出现,有时 - 不。
  2. 更新 eslint 时总是出现。
  3. 如果eslint从控制台运行某个.vue文件,eslint 将正确完成执行。所以看起来它不是 eslint 错误。

我的 Eslint 配置(YAML):

Parsing error: "parserOptions.project" has been set for @typescript-eslint/parser.
The file does not match your project config: XX\XX\CurrentFile.vue.
The file must be included in at least …
Run Code Online (Sandbox Code Playgroud)

intellij-idea typescript eslint vue.js

1
推荐指数
1
解决办法
7306
查看次数

标签 统计

eslint ×1

intellij-idea ×1

typescript ×1

vue.js ×1