I am getting this error after saving any changes inside code files::
ERROR in [eslint] Failed to load config "react-app" to extend from.
Referenced from: /Users/archana/Documents/Workspace/my-app/package.json
Steps to Reproduce::
- I have migrated from npm to yarn
- and then install the package dependencies. Everything is working fine except this. Every time I made changes and save them it shows me an error.
Versions I am using::
- React version: 18.2.0
- Yarn version: 3.3.1
- node version: 18.12.1
## It worked in two cases, which are basically temporary solutions::
It will resolve if I will save the package.json file after saving any changes. Basically, I need to press "ctrl + s" inside "package.json" after any changes made inside the workspace otherwise above error occurred. If I remove the below lines from "package.json". But after removing this it gives me an error for the "react-hook/exhaust-deps" ignore script lines.
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
Please suggest what should I do to resolve this error?