-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Having Issue will creating react app #13715
Comments
Me too. npm install --global yarn |
I can confirm too, yesterday was working fine and it just broke. |
i confirme i have the same issue |
facing the same issue too |
Seems like react just updated to 19, and the script prob just try to pick the latest react version, and now its 19 and the other dependencies are expecting react 18 which is why it gives this error |
I am facing this issue too, is there any work arounds? |
with yarn it's work |
same issue,why??? all of a sudden,it doesn't work! |
any solution? |
I have a same error too. |
I hope this problem is solved and we can sync up |
i also face this issue @Neoprot said it right . it is the version 19 upgrade issue. i used a downgraded version of react app to solve this issue ryt now. |
same problem as well. anyone pls let me know when there's a solution |
Okay this works. maybe just use yarn until facebook releases a patch for the npx |
I was also facing the same issue, tried below steps
which will give above error
possibly this is happening due to the latest version of react (19) and testing-library/[email protected] as it supports react version 18
after running above command now update the "@testing-library/react": "^16.0.0", after this run below command
OR update the react version to 18
after this update the "react": "^18.0.0",
"react-dom": "^18.0.0", and run below
|
Thanks, it worked! I hope they will fix this problem soon. |
Wrong repository, the problem is not for React Scripts, is Testing Library for React: testing-library/react-testing-library#1372 |
I am facing such Issue: - Please Provide Solution on this.
My Node Version is v22.12.0
NPM VERSION 10.9.0
NPX VERSION 10.9.0
darksoul@Ronits-MacBook-Air ~ % npx create-react-app hello
Creating a new React app in /Users/darksoul/hello.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...
added 1314 packages in 38s
261 packages are looking for funding
run
npm fund
for detailsInitialized 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/darksoul/.npm/_logs/2024-12-06T07_30_06_577Z-eresolve-report.txt
npm error A complete log of this run can be found in: /Users/darksoul/.npm/_logs/2024-12-06T07_30_06_577Z-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
faileddarksoul@Ronits-MacBook-Air ~ %
The text was updated successfully, but these errors were encountered: