After installing some packages with yarn 4.3.1 it says:
Some peer dependencies are incorrectly met by dependencies; run yarn explain peer-requirements for details.
After running yarn explain peer-requirements
says:
...
(dependencies working)
...
pd8655 → ✘ @typescript-eslint/utils@npm:7.17.0 [eb8b2] doesn't provide typescript to @typescript-eslint/typescript-estree@npm:7.17.0 [05a60] and 1 other dependency
...
(dependencies working)
...
And after running yarn explain peer-requirements pd8655
says:
Package @typescript-eslint/utils@npm:7.17.0 [eb8b2] is requested to provide typescript by its descendants
@typescript-eslint/utils@npm:7.17.0 [eb8b2]
└─ @typescript-eslint/typescript-estree@npm:7.17.0 [05a60] (via *)
└─ ts-api-utils@npm:1.3.0 [b4f1c] (via >=4.2.0)
✘ Package @typescript-eslint/utils@npm:7.17.0 [eb8b2] does not provide typescript.
This is my package.json
:
{
"name": "backend-ts",
"packageManager": "[email protected]",
"devDependencies": {
"@types/eslint": "^9.6.0",
"@types/node": "^20.14.11",
"@types/webpack": "^5.28.5",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-webpack-plugin": "^4.2.0",
"prettier": "^3.3.3",
"ts-loader": "^9.5.1",
"ts-node": "^10.9.2",
"typescript": "^5.5.4",
"typescript-eslint": "^7.17.0",
"webpack": "^5.93.0",
"webpack-cli": "^5.1.4"
}
}
As you can see, I already have installed Typescript and typescript-eslint documentation says my typescript version is in the correct range.
Do you know what’s happening, and how can I fix it? Thank you.