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

create app not working #17012

Open
hitesh00025 opened this issue Feb 8, 2025 · 4 comments
Open

create app not working #17012

hitesh00025 opened this issue Feb 8, 2025 · 4 comments

Comments

@hitesh00025
Copy link

Creating a new React app in /Users/hiteshkumar/my-app.

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...

added 1326 packages in 30s

268 packages are looking for funding
run npm fund for details

Initialized a git repository.

Installing template dependencies using npm...
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 /Users/hiteshkumar/.npm/_logs/2025-02-08T18_23_15_675Z-eresolve-report.txt
npm error A complete log of this run can be found in: /Users/hiteshkumar/.npm/_logs/2025-02-08T18_23_15_675Z-debug-0.log
npm install --no-audit --save @testing-library/jest-dom@^5.14.1 @testing-library/react@^13.0.0 @testing-library/user-event@^13.2.1 web-vitals@^2.1.0 failed

@xskayne
Copy link

xskayne commented Feb 9, 2025

I am also facing this issue on NixOS Unstable with Node v22.12.0 and NPM v10.9.0. The error occurs when running the command npx create-react-app <app>, applying --force or --legacy-peer-deps does not change the outcome.

Logs

2025-02-09T00_05_01_162Z-debug-0.log
2025-02-09T00_05_02_340Z-debug-0.log
2025-02-09T00_05_02_537Z-debug-0.log
2025-02-09T00_05_33_212Z-debug-0.log
2025-02-09T00_05_33_212Z-eresolve-report.txt

Edit:

As per other replies in the issues on the matter, using Vite worked a charm!

npm create vite@latest <app> -- --template react
cd <app>
npm install
npm run dev

@samuel871211
Copy link

I believe there's a same issue #17011

@vrushmore123
Copy link

can you please provide your folder structure?

@Bbigm1991
Copy link

Bbigm1991 commented Feb 10, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants