Closed as not planned
Description
Before You File a Bug Report Please Confirm You Have Done The Following...
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
- I have searched for related issues and found none that matched my issue.
- I have read the FAQ and my problem is not listed.
Relevant Package
parser
Playground Link
No response
Repro Code
eslint --resolve-plugins-relative-to /my/path/to/ --no-eslintrc --config /config/path/to/eslint-config.json example.js
ESLint Config
{
"plugins": [
"@typescript-eslint"
],
"parser": "/my/path/to/@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 13,
"sourceType": "script",
"ecmaFeatures": {
"globalReturn": false,
"jsx": false
},
"project": [
"/config/path/to/tsconfig.tmp.json"
]
},
"extends": [
"plugin:@typescript-eslint/recommended-type-checked"
]
}
tsconfig
No response
Expected Result
Should work
Actual Result
Error: Failed to load parser '/my/path/to/@typescript-eslint/parser' declared in '--config': Cannot find module '/my/path/to/@typescript-eslint/parser'
Additional Info
With 5.62.0 (and before) it works perfectly fine.
However with 6.0.0 it fails.
The package @typescript-eslint/parser is there, is accessible (correct permissions) and also shows perfectly fine when checking with npm list
.
I spent hours today thinking it was a bug in eslint, but it turns out it's not, and I am stuck at a dead-end.
I'd really appreciate if you could fix this!
Versions
package | version |
---|---|
@typescript-eslint/eslint-plugin |
6.0.0 |
@typescript-eslint/parser |
6.0.0 |
TypeScript |
5.1.4 |
ESLint |
8.45.0 |
node |
16.19.1 |