question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug: React gives me an error when stating with yarn start

See original GitHub issue

React version: ^17.0.2

"@testing-library/jest-dom": "^5.11.4",
"@testing-library/react": "^11.1.0",
"@testing-library/user-event": "^12.1.10",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-scripts": "4.0.3",
"web-vitals": "^1.0.1"

Steps To Reproduce

  1. make a new React app
  2. start react app using yarn start

Link to code example: not needed as its a new project

The current behavior

React gives me error when starting.

The expected behavior

React starts with no errors

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
MCorange99commented, Nov 23, 2021

I just tried renaming my folder. It works now. thanks

0reactions
mribichichcommented, Nov 23, 2021

The same just happened to us, when we upgraded to node 16. that’s a node 16 warning because of the postcss version react-scripts is using.

the last postcss version has the fix

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I solve web vital error when I try yarn start?
Try node --version to see which version of node you are using. If it is a v17+, then you are likely hitting this...
Read more >
Old React App Not Starting | Solution | Yarn Start Error
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...
Read more >
Strict Mode - React
React 16.3 added a third option that offers the convenience of a string ref ... With Strict Mode starting in React 18, whenever...
Read more >
Troubleshooting common React Native bugs - LogRocket Blog
First, you can try reinstalling the whole dependencies directory. If a major dependency is somehow changed in your repository, it could cause ...
Read more >
Troubleshooting | React Navigation
Sometimes it might even be due to a corrupt installation. If clearing cache didn't work, try deleting your node_modules folder and run npm...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found