Old React App Not Starting | Solution | Yarn Start Error | NPM Start Error | Fix Old React App

preview_player
Показать описание
I created this app one and half year ago. I used create-reat-app to start this react project. Node JS has been upgraded, react and create-react-app have been upgraded since then. This project will not run now. It needs dependencies upgrade. How to run such old react project that is not running.

Open terminal
Install node modules, packages or React project dependencies
Yarn was used as a package manager for this app
command to install packages will be
- yarn install
To run the app,
we will use command
- yarn start
But we encounter the error
and React JS project is not running
run command
- yarn upgrade --latest react-scripts
React Scripts package will be upgraded
Now run the app using
- yarn start
and the app will run now
So if u have an old react project that is not running or throwing error when u try to run it, upgrade react scripts package and in most cases it will work. You may check for other dependencies if they are old and need upgrade.

To upgrade a create-react-app project, we need to update the react-scripts module to the latest version and update app to be compatible with any breaking changes in react-scripts.
Run
yarn upgrade --latest react-scripts
command, rebuild your app, and everything should work again.

Topics covered
- How to upgrade a React project built with create-react-app to the next create-react-app version?
- How to upgrade a React project?
- React project is not running error
- React project error
- yarn start error for react project
- npm start error for react project
- Fix old React project
- Fix broken react project
- create-react-app is not working

Find more about reactjs, react tutorials, react js how to guides, step by step react tutorial and react js tutorial examples at WebStylePress by following us.

✅ Display Data From JSON File in React
✅ Display Icons / Images from JSON File in React JS
✅ Fetch All Types of Data from JSON File in React JS
✅ 7 Ways to use Images in React JS
✅ Easy Way to use Images in React JS
✅ Require Image Not Working in React JS
✅ Multiple Images in One Import
✅ Multiple Sets of Images from One Import in React JS
✅ Default Map is not a Function in React JS
✅ Async Await Fetch in React JS
✅ Assigned a Value but Never Used
✅ Easily Sort Before Displaying Records in React JS
✅ Responsive Image Gallery from Scratch in React JS

✅ ReactJS Playground
✅ JavaScript Problem Solving:
✅ Web Development Essentials:
✅ Crash Courses:

Thank You!
👍 LIKE VIDEO
👊 SUBSCRIBE
🔔 PRESS BELL ICON
✍️ COMMENT

#ReactJS #JavaScript #JS #react #ReactTips #tutorial #upgrade #ReactScripts #fix #tips #yarn #WebStylePress #webdevelopment
Рекомендации по теме
Комментарии
Автор

by working as a developer they are 100 ways of doing samething but one of those 100 ways one is the best way to do samething but this tutorial is the best way to fix dependency conflict in your package

zunairullah
Автор

How to deal with an old project that has been ejected? There is no react-scripts package in the json file.

ijazkhan
Автор

sir how to solve the npm error.Make another vedio for npm

mithrahari