Amplify-js: React 17 support for ui-react

Created on 3 Nov 2020  路  10Comments  路  Source: aws-amplify/amplify-js

Is your feature request related to a problem? Please describe.

Right now @aws-amplify/ui-react (0.2.27) requires react ^16.7.0 as peer dependency. React 17.0.1 has been released recently, so when updating one now gets unmet peer dependency warnings from npm.

Describe the solution you'd like

Support, and declare support for React 17 by updating the peer dependency declaration.

Describe alternatives you've considered

I'm going to ignore the warning for now, and will see whether things work.

Note that there is #7094 filed that seems to indicate potential issues with React 17.

Additional context

See the release notes: https://reactjs.org/blog/2020/10/20/react-v17.html

Amplify UI Components feature-request

All 10 comments

I am trying to resolve same - did ignoring the warning work for you @ankon ?

Ignoring it so far, but running into auth "configured incorrectly"

@amlcodes Please make sure both all amplify related packages are at latest:

yarn add aws-amplify@latest
yarn add @aws-amplify/ui-react@latest  # or any other amplify ui component package

https://github.com/aws-amplify/amplify-js/discussions/5836#discussioncomment-123904

Hi all, any news here? Experimenting the same.

it's not working with npm i @aws-amplify/ui-react@latest

Error on react 17: peer react@"^16.7.0" from @aws-amplify/[email protected]

whats the status on this? seems like its time to upgrade, since the official tutorial doesnt work anymore due to this problem.

Same problem here. Any workaround?

Ran into the same issue running the Amplify tutorial with react since it starts with the latest react version 17.0.1

Same problem here. Any workaround?

I guess you can install with --legacy-peer-deps to "ignore all peerDependencies when installing". I did that to do one short tutorial and withAuthenticator worked.

Same problem here. Any workaround?

I guess you can install with --legacy-peer-deps to "ignore all peerDependencies when installing". I did that to do one short tutorial and withAuthenticator worked.

Oh nice, I forgot about that. That should solve the issue. Thanks @Temez1!

Was this page helpful?
0 / 5 - 0 ratings