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 19 Not Supported #3051

Closed
timothyerwin opened this issue Dec 7, 2024 · 10 comments
Closed

React 19 Not Supported #3051

timothyerwin opened this issue Dec 7, 2024 · 10 comments

Comments

@timothyerwin
Copy link

Time to release another update to npm

@jpbnetley
Copy link

I think the SWR team are still making some upgrades and doing testing.
I did see they updated the peer dependencies: #3047

@Homanism
Copy link

Still problem with swr.Any update?

npm error Could not resolve dependency:
npm error peer react@"^16.11.0 || ^17.0.0 || ^18.0.0" from [email protected]
npm error node_modules/swr
npm error   swr@"^2.2.5" from the root project

@icyJoseph
Copy link
Contributor

icyJoseph commented Dec 13, 2024

@Homanism it'll come in the next release, 2.2.6 something ~ you can see that the package.json of this repository has the correct peer dependencies already

@dgtllion
Copy link

@icyJoseph When do you plan to publish it?

@Homanism
Copy link

@icyJoseph Do you think we can expect @v2.2.6 to be released this week?

@tintinthedev
Copy link

Why not pushing the current main version (which already has React 19 as a peer) to NPM? This issue is 2 weeks old now...

@brunomaffei
Copy link

Can anyone tell me if I use legacy-peer-deps can it break and not work on react19?

@dgtllion
Copy link

Vercel guys... @icyJoseph / @promer94 / @koba04...
NextJS / ReactJS is stable and running and now i'm waiting for swr to move to the latest NextJS version!
Can you give us any estimation when we can expect release 2.6.0 of swr?

If there is no estimation, can you explain why not? Are you facing some problems with React 19 or Next 15?
May be we can help somehow?

@tintinthedev
Copy link

Can anyone tell me if I use legacy-peer-deps can it break and not work on react19?

I used --force with NextJS 15 and it went well. You can try to create a new branch just to test that, just in case something breaks

@koba04
Copy link
Collaborator

koba04 commented Dec 23, 2024

Sorry for being late 🙏 We've just released v2.3.0, which support React 19 🎉
https://github.com/vercel/swr/releases/tag/v2.3.0

@koba04 koba04 closed this as completed Dec 23, 2024
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