Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Cannot create new react app #31934

Closed
l1acy opened this issue Dec 30, 2024 · 5 comments
Closed

Bug: Cannot create new react app #31934

l1acy opened this issue Dec 30, 2024 · 5 comments
Labels
Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug

Comments

@l1acy
Copy link

l1acy commented Dec 30, 2024

> npx create-react-app loldinardelay

npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: [email protected]
npm error Found: [email protected]
npm error node_modules/react
npm error   react@"^19.0.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peer react@"^18.0.0" from @testing-library/[email protected]
npm error node_modules/@testing-library/react
npm error   @testing-library/react@"^13.0.0" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error C:\Users\monik\AppData\Local\npm-cache\_logs\2024-12-30T08_15_02_751Z-eresolve-report.txt
npm error A complete log of this run can be found in: C:\Users\monik\AppData\Local\npm-cache\_logs\2024-12-30T08_15_02_751Z-debug-0.log
@l1acy l1acy added the Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug label Dec 30, 2024
@JorensM
Copy link

JorensM commented Dec 30, 2024

create-react-app is deprecated and not recommended anymore. Please use Vite or any of the recommended ways

@TilakKhatri
Copy link

If you've previously installed create-react-app globally via npm install -g create-react-app, I think you uninstall the package.
than try again it's working for me.
link for reference: https://create-react-app.dev/docs/getting-started

@nuhaa333
Copy link

i will suggest you to use vite + react. try running command npm create vite@latest i too encountered with the same problem then solved my issue with the help of mosh react tutorial setup

@Popstqr1
Copy link

Popstqr1 commented Jan 1, 2025

@l1acy
Copy link
Author

l1acy commented Jan 2, 2025

Use vite:

npm create vite@latest

@l1acy l1acy closed this as completed Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug
Projects
None yet
Development

No branches or pull requests

5 participants