-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Support for React 19 #1364
Comments
The problem here is React RC version that isn't supported due to the way |
Wouldn't extending the range to 19 + allowing 19 RCs work? Maybe it could be released on the next/beta channel so that we can use a pre-release of this lib with 19 RC allowed until 19 is stable? |
Once React 19 will be released, our current peer dependencies range will include it. I don't think that pushing a new version of RTL is necessary just to support RC as long as using |
Hmm, your current range for React stops at 18 (includes all minor and patches) react-testing-library/package.json Line 69 in 3dcd8a9
Or am I looking in the wrong place? Or misreading the use of
I wasn't aware of the But I guess for testing our lib (react-dropzone), the aforementioned flag is good enough. |
React 19 isn't released yet so there's nothing useful to put there. |
I've only mentioned it because:
Which in my mind meant that this package needs no change to allow React 19 to be used without that peer deps error. In any case, have you guys tested this lib with the latest pre-release of React? Or you don't think there're gonna be any issues and the transition will be seamless? |
We automatically test it on pushes and PRs with latest Canary and Experimental release. Last time I looked, everything was fine and since then nothing related change so I'm confident it's working.
Why would it require no change? We currently don't list |
Because @MatanBobi said:
It literally says that the current peer deps range will include it. But maybe I misread the message. |
That was my misunderstanding, sorry about that. |
No worries. Just wanted to make sure I understood the current state correctly and wasn't looking in the wrong place. |
npm i react-dropzone --legacy-peer-deps, this worked! |
Looks like the work got done but the release failed (https://github.com/testing-library/react-testing-library/actions/runs/12187127289/job/33997281908). Any idea of timeline for getting that resolved? |
@justinwinslow support for React 19 was released as part of 16.1.0 which is available on npmjs, I'm not sure why the job failed: https://www.npmjs.com/package/@testing-library/react?activeTab=versions |
Describe the feature you'd like:
It would be nice if this lib supports React 19. It should probably work, but when using npm to install deps, it fails with:
Suggested implementation:
I guess relaxing the react version range should be enough if there are no other issues?
Describe alternatives you've considered:
I'm trying
npm install --force
.Teachability, Documentation, Adoption, Migration Strategy:
The text was updated successfully, but these errors were encountered: