Newly created React app crashes on live server - reactjs

Whenever i create a react app using create-react-app and run npm run start it crashes.
This is the error i am getting in terminal.
Failed to compile ../node_modules/react-dev-utils/webpackHotDevClient.js
Error: [BABEL]/Users/toures/Desktop/REACT/SecondSummit/try1/node_modules/react-dev-utils/webpackHotDevClient.js:
Cannot find module './src/data'
(While processing: "/Users/toures/Desktop/REACT/SecondSummit/try1/node_modules/babel-preset-react-app/dependencies.js$0$9")
Can anyone guide me? Thanks.

In the past I've fixed it by deleting the node_modules folder, then running npm install.

Related

Cannot run npm run build due to error ".next/status/media/IMG" does not exist

I'm trying to deploy a static react website (nextjs) and I cannot due to the npm run build command not being able to run. I have an image in my public folder and it's saying it doesn't exist. I've never done this before and don't understand the error I'm getting. The github repository is https://github.com/mattmoon00/portfolio-website . I have tried using vercel and netlify and they both gave me the same error. I also cannot run "npm run build" in the terminal on my machine either. Thanks in advance.

Cannot read property 'setTitle' of null, js engine: hermes

I am getting the following error
while running my React native app.
Things I already tried:
devScripts/set-me-up.sh
deleting node_modules and installing them again
restarting server by reseting cache - npm start -- --reset-cache
but no success yet, any help would be great.
We have to restart with the command react-native run-android .It worked for me,there is no need to removing node modules or cache

ReactJs Compiling Issue: immer.esm.js is not found

I am creating an reactJS application where I am using react-redux for state management. Few days back it was working fine but now I am getting below error at the time of compilation process:
Failed to compile.
./node_modules/#reduxjs/toolkit/node_modules/immer/dist/immer.esm.js
Error: ENOENT: no such file or directory, open 'root_directory\node_modules\#reduxjs\toolkit\node_modules\immer\dist\immer.esm.js'
I had setup react project using "create-react-app" command. After setting up, I have got few commands that I can use to run application. So, I am getting above issue while running below command:
npm run start
I have also tried to fix this issue after deleting package-lock.json file and then run npm install but still getting same error.
Can someone please guide me what has done wrongly and why this error arrived suddendly.
Thanks in advance

npm run deploy failure when deploying React app to Github

Problem:
I am still very new to React and am trying to push my React app onto Github, but I keep running into an error when I deploy it on my console.
Set Up:
I am using Atom on a Windows 10 computer. I created my React app by using the commands, npx create-react-app jordon. I then followed the steps in this youtube tutorial. This is what my package.json looks like after following the tutorial:
I then went through the steps to initialize a github repository. However, after running npm run deploy, I come across an error:
I have tried to rerun the steps in the tutorial time after time, but either receive the same error, or an error that is resolved by uninstalling gh-pages from the folder but leads to the same error. At this point, I have not found any resources that would help me, since most people seem to have successfully ran the npm run deploy command. Any help would be much appreciated!

React start npm doesn't work - error event occured

I'm trying to start a new react environment using npx command.
While the npx is working and the directory is formed, when I try to start it won't work (using npm start).
This is the error I'm getting:
Here's a snapshot of the error I'm receiving:
Any idea what I need to do?
I've tried to re-install node.js to its latest version and try to change minor things in the package.js file.

Resources