-
Notifications
You must be signed in to change notification settings - Fork 313
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 support #6084
Comments
Hello, @oste and thank you for opening this issue. We'll mark this as a feature request since the versions mentioned here are still release candidates, but we'll update this issue as soon as we have support for the released versions. Thanks! If you're using JavaScript, things should still work but this has not been fully tested yet. Per the error message you've listed, you can use the |
I did try legacy peer deps but didn’t have success but maybe that’s another issue with my dependency tree |
Just tried the following commands and I didn't get any errors:
Output: ➜ test-react-19 git:(main) npm install aws-amplify @aws-amplify/ui-react --legacy-peer-deps
added 232 packages, and audited 269 packages in 10s
16 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities Maybe try |
When will this update be released? |
Are you all on Christmas break? 😢 |
I kinda thought this might work using gitpkg but I am getting "can't find module" "@aws-amplify/ui-react": "https://gitpkg.vercel.app/aws-amplify/amplify-ui/packages/react?main", |
Shouldn't this be reopened due to #6278 |
Re-opening this issue as the released changes were rolled back to address an introduced regression |
Is there another way to enable this/manual edit or do we have to wait follow this PR/review to have React 19 compatibility? |
Experimental support for # npm
npm i -S @aws-amplify/ui-react@react-19
# yarn
yarn add @aws-amplify/ui-react@react-19 |
I have tried the Installing @xstate/react fixes the issue but I wanted to raise it here anyway since I didn't see it as a peerDep. It looks like only xstate is a peerDep here https://github.com/aws-amplify/amplify-ui/blob/b1be9abaa72d4cd9eef57574fd2269adaf376da1/packages/ui/package.json#L56C1-L60C5
|
@ostehost, can you try the following steps to see if it resolves the issue?
|
@cwomack I was actually getting a different error related to |
@cwomack I did try to run
|
@ostehost Can you provide an example app reproducing the behavior? Have been unable to reproduce from our side |
Might want to wait to close the issue until a stable version supporting react 19 is published. Doesn't seem to be available anywhere, at least until #6292 is merged. |
After upgrading to amplify ui-react to 6.9.0 with React 19 support, see below warnings:
|
@zxkane similar to what I reported on their last release supporting React 19: #5826 (comment). Seems they're having a hard time managing dependencies. |
@zxkane and @morganney, We're aware of these peer dependency warnings related to We appreciate you both bringing this to our attention and will continue to monitor for any actual impact on functionality. If you encounter any specific functional issues, please let us know. |
@cwomack Maybe the amplify team is accustomed to ignoring warnings but I’m not. What would be better is to upgrade to a version of your dependencies that support react 19. Why aren’t you upgrading to @xstate/react 5.0.2? |
As expected, I'm encountering a dependency error when running npm install with the latest versions of Next.js and React 19 RC. I'm wondering if there’s a way to make Amplify UI work with React 19, or if there’s a planned roadmap for adding support for react 19. Thanks!
The text was updated successfully, but these errors were encountered: