-
-
Notifications
You must be signed in to change notification settings - Fork 27k
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
probleme while launching npx create-react-app #17006
Comments
A quick workaround:
It will complain about React 19.
then |
Still I got these problems after entering
Why did it happen? I've got no sense. |
You can refre to this link: https://stackoverflow.com/questions/69692842/error-message-error0308010cdigital-envelope-routinesunsupported/73465262#73465262 Hope you can help :D |
Your can:
|
I've had the same issue, what solved for me is to set 'legacy-peer-deps' as 'true', using the following:
then:
edit: downgrading react and react-dom to 18 worked as well. |
While updating the peer dependencies will work, the project has been unmaintained for 2 years and is now officially deprecated. (See #17004 for details) My personal recommendations for new beginners: |
This is for React and Typescript Typescript React follows these steps: npm install -g typescript then npm uninstall react react-dom then npm install react@18 react-dom@18 then 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 @types/jest@^27.0.1 @types/node@^16.7.13 @types/react@^18.0.0 @types/react-dom@^18.0.0 typescript@^4.4.2 web-vitals@^2.1.0 then npx tsc --init then npx tsc --build --clean then npm install --save-dev typescript then open the tsconfig.json { then goto src/App.tsx comment 2nd line comment 9th line then npm start or you can go with this YouTube link: https://youtu.be/_0_kW0xI7P8?si=JWDu0Lyskflmdjol |
This is for React JS the first step is to locate your project folder then run these commands one by one npm uninstall react react-dom then npm install react@18 react-dom@18 then 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 then npm start here what we are doing is uninstalling react19 and installing react18. or you can go with this YouTube link: https://youtu.be/mUlfo5ptm1o?si=hYHTwc7hApEXzPX5 |
2 error code ERESOLVE
33 error ERESOLVE unable to resolve dependency tree
34 error
35 error While resolving: [email protected]
35 error Found: [email protected]
35 error node_modules/react
35 error react@"^19.0.0" from the root project
35 error
35 error Could not resolve dependency:
35 error peer react@"^18.0.0" from @testing-library/[email protected]
35 error node_modules/@testing-library/react
35 error @testing-library/react@"^13.0.0" from the root project
35 error
35 error Fix the upstream dependency conflict, or retry
35 error this command with --force or --legacy-peer-deps
35 error to accept an incorrect (and potentially broken) dependency resolution.
36 error
36 error
36 error For a full report see:
The text was updated successfully, but these errors were encountered: