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 dependency Issue #1177

Closed
insivika opened this issue Nov 19, 2024 · 10 comments
Closed

React dependency Issue #1177

insivika opened this issue Nov 19, 2024 · 10 comments
Labels
Merged in next Merged but not live

Comments

@insivika
Copy link

Do you want to request a feature or report a bug?
Bug

What is the current behavior?
npm resolution error

While resolving: cfc_ui@0.1.0
Found: react@19.0.0-rc-66855b96-20241106

Could not resolve dependency:
peer react@">=18" from react-toastify@10.0.6

Trying to install with --force or --legacy-peer-deps breaks other packages

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have dependencies other than React. Paste the link to your CodeSandbox (https://codesandbox.io/s/new) example below:

  1. Try installing using the latest react version

What is the expected behavior?
It should install

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
react@19.0.0-rc-66855b96-20241106

@coreyafunk
Copy link

The latest production release of React is 18.3.1, the version you have installed is the v19 Release Candidate.

The maintainers are not likely to offer support for beta React releases.

You will either need to downgrade your version of React to the latest official release (v18.3.1), or if for some reason you must use the React RC version, do as the error message suggests and use the --force or --legacy-peer-deps flag and accept that there may be potential issues in your app.

@Adityapanther
Copy link

I am facing the same issue

@Badestrand
Copy link

I have the same problem.

As a note, this is from a default Next.js installation which appearently uses React 19.

@fkhadra
Copy link
Owner

fkhadra commented Nov 23, 2024

i'm preparing the v11 that will address this issue

@shehi
Copy link

shehi commented Nov 25, 2024

Need that as well. This essential for those who want to upgrade to Next.js 15, which uses React-19.

@fkhadra fkhadra added the Merged in next Merged but not live label Dec 1, 2024
@Adityapanther
Copy link

@fkhadra any update ?

@fkhadra
Copy link
Owner

fkhadra commented Dec 6, 2024

@Adityapanther almost there #1178, I have a couple of test to fix and hopefully next week I can release

@therealsras
Copy link

@fkhadra , waiting. just upgrade to NextJS 15

@canercalskan
Copy link

@fkhadra waiting to hear from u about this update, thanks for your efforts!

@fkhadra fkhadra mentioned this issue Dec 10, 2024
@fkhadra
Copy link
Owner

fkhadra commented Dec 16, 2024

Hey, I've released a new major version, please read the release note before upgrading 🙏🏽

@fkhadra fkhadra closed this as completed Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Merged in next Merged but not live
Projects
None yet
Development

No branches or pull requests

8 participants