eslint-config-typescript icon indicating copy to clipboard operation
eslint-config-typescript copied to clipboard

[13.0.0] Error: Error while loading rule '@typescript-eslint/consistent-type-imports': You have used a rule which requires parserServices to be generated

Open frankykubo opened this issue 3 months ago • 1 comments

After update from "@vue/eslint-config-typescript": "^12.0.0", to "@vue/eslint-config-typescript": "^13.0.0",, the error has shown up:

Error: Error while loading rule '@typescript-eslint/consistent-type-imports': You have used a rule which requires parserServices to be generated. You must therefore provide a value for the "parserOptions.project" property for @typescript-eslint/parser.
Parser: X:\WebTV Frontend\node_modules\.pnpm\[email protected][email protected]\node_modules\vue-eslint-parser\index.js
Note: detected a parser other than @typescript-eslint/parser. Make sure the parser is configured to forward "parserOptions.project" to @typescript-eslint/parser.
Occurred while linting X:\WebTV Frontend\src\components\player\video\info\LiveIndicator.vue
    at throwError (X:\WebTV Frontend\node_modules\.pnpm\@[email protected][email protected][email protected]\node_modules\@typescript-eslint\utils\dist\eslint-utils\getParserServices.js:40:11)
    at getParserServices (X:\WebTV Frontend\node_modules\.pnpm\@[email protected][email protected][email protected]\node_modules\@typescript-eslint\utils\dist\eslint-utils\getParserServices.js:20:9)
    at create (X:\WebTV Frontend\node_modules\.pnpm\@[email protected]_@[email protected][email protected][email protected]\node_modules\@typescript-eslint\eslint-plugin\dist\rules\consistent-type-imports.js:85:68)
    at Object.create (X:\WebTV Frontend\node_modules\.pnpm\@[email protected][email protected][email protected]\node_modules\@typescript-eslint\utils\dist\eslint-utils\RuleCreator.js:38:20)
    at createRuleListeners (X:\WebTV Frontend\node_modules\.pnpm\[email protected]\node_modules\eslint\lib\linter\linter.js:895:21)
    at X:\WebTV Frontend\node_modules\.pnpm\[email protected]\node_modules\eslint\lib\linter\linter.js:1066:110
    at Array.forEach (<anonymous>)
    at runRules (X:\WebTV Frontend\node_modules\.pnpm\[email protected]\node_modules\eslint\lib\linter\linter.js:1003:34)
    at Linter._verifyWithoutProcessors (X:\WebTV Frontend\node_modules\.pnpm\[email protected]\node_modules\eslint\lib\linter\linter.js:1355:31)
    at X:\WebTV Frontend\node_modules\.pnpm\[email protected]\node_modules\eslint\lib\linter\linter.js:1913:29
 ELIFECYCLE  Command failed with exit code 2

Any recommendations how should this be fixed?

frankykubo avatar Mar 27 '24 12:03 frankykubo