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

React v18 is not supported, what should I do ? #1926

Closed
MedAliBZ opened this issue Jul 8, 2022 · 8 comments
Closed

React v18 is not supported, what should I do ? #1926

MedAliBZ opened this issue Jul 8, 2022 · 8 comments

Comments

@MedAliBZ
Copy link

MedAliBZ commented Jul 8, 2022

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR!   react@"^18.2.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.8.6 || ^17.0.0" from @react-pdf/[email protected]
npm ERR! node_modules/@react-pdf/renderer
npm ERR!   @react-pdf/renderer@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!

I don't want to force this, because the project is going to production, next week, what should I do ?

@MedAliBZ MedAliBZ changed the title Will react v18 is not supported React v18 is not supported, what should I do ? Jul 8, 2022
@appasaheb4
Copy link

same issue facing
Screenshot 2022-07-08 at 7 04 34 PM

@gajrajantino
Copy link

@carlobeltrame
Copy link
Contributor

@MohamedAliBouzaiene react-pdf is not compatible with React 18 yet. Please help out in #1879 if you want it to go faster.
@appasaheb4 that is not the same issue at all. Your issues should be solved by #1891, once that is released.
@gajrajantino this extra config should soon be unnecessary, and the corresponding part of the docs should be removed: diegomura/react-pdf-site#82

@ghost ghost mentioned this issue Oct 7, 2022
@ErykKozyra
Copy link

Any new info about merge?

@carlobeltrame
Copy link
Contributor

carlobeltrame commented Oct 26, 2022

@ErykKozyra not that I know of. If you want to see this happen, please go to #1879 and help out there by testing whether the proposed fix really works for React 18 and whether it introduces problems with React 17 or 16.

@michaelsoriano
Copy link

+1

React 18. Would really like to start using this

@jeetiss
Copy link
Collaborator

jeetiss commented Dec 23, 2022

Duplicate of #1878

@jeetiss jeetiss marked this as a duplicate of #1878 Dec 23, 2022
@jeetiss jeetiss closed this as completed Dec 23, 2022
@yashgupta5532
Copy link

Me too getting the same error while deploying
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR! react@"^18.2.0" from the root project
npm ERR! peer react@">=16.8.0" from @emotion/[email protected]
npm ERR! node_modules/@emotion/react
npm ERR! @emotion/react@"^11.10.5" from the root project
npm ERR! peer @emotion/react@"^11.0.0-rc.0" from @emotion/[email protected]
npm ERR! node_modules/@emotion/styled
npm ERR! @emotion/styled@"^11.10.5" from the root project
npm ERR! 3 more (@mui/material, @mui/styled-engine, @mui/system)
npm ERR! 4 more (@mui/material, @mui/styled-engine, @mui/system, react-select)
npm ERR! 20 more (@emotion/styled, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.8.1 || ^17" from [email protected]
npm ERR! node_modules/react-alert
npm ERR! react-alert@"^7.0.3" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/react
npm ERR! peer react@"^16.8.1 || ^17" from [email protected]
npm ERR! node_modules/react-alert
npm ERR! react-alert@"^7.0.3" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR!
npm ERR! For a full report see:
npm ERR! /opt/render/.cache/_logs/2024-01-27T01_59_16_902Z-eresolve-report.txt
npm ERR! A complete log of this run can be found in: /opt/render/.cache/_logs/2024-01-27T01_59_16_902Z-debug-0.log
==> Build failed 😞

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

8 participants