I am trying to run My react project with yarn start but it failed with the following error: Failed to load config “react-app” to extend from in ReactJS. In this Exerror article, We are going to learn about How to reproduce this error and we will discuss All Possible Solutions Lets Get Start with This Article.
How Failed to load config “react-app” to extend from Error Occurs?
I am trying to run My react project with yarn start but it failed with the following error:
Failed to compile.
Failed to load config "react-app" to extend from.
So here I am writing all the possible solutions I have tried to resolve this error.
How To Solve Failed to load config “react-app” to extend from Error?
How To Solve Failed to load config “react-app” to extend from Error?
To Solve Failed to load config “react-app” to extend from Error If You are using npm then you need to run this command at the root of your project: npm install -D eslint-config-react-app Now, You can run your project without any errors.
Failed to load config “react-app” to extend from
To Solve Failed to load config “react-app” to extend from Error You just need to add eslint with this command. Open Your terminal and run this command: yarn add eslint-config-react-app -D Or You can also run this command: yarn add eslint-config-react -D Now, you can run yarn start to start your project: yarm start Now, your error must be solved. Thank You.
Solution 1: install eslint
You just need to add eslint with this command. Open Your terminal and run this command.
yarn add eslint-config-react-app -D
Or You can also run this command.
yarn add eslint-config-react -D
Now, you can run yarn start to start your project.
yarn start
Now, your error must be solved. Thank You.
Solution 2: For npm users
If You are using npm then you need to run this command at the root of your project.
npm install -D eslint-config-react-app
Now, You can run your project without any errors.
Conclusion
It’s all About this error. I hope We Have solved Your error. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?
Also, Read
- How to Set port in next.js
- npm ERR! code ENOENT npm ERR! syscall open
- How to update all dependencies in package.json to the latest version
- ReferenceError: document is not defined in Nextjs
- ChromeDriverManager().install() Is Giving KeyError: ‘google-chrome’