Hey everyone, due to a recent change to the Amplify signIn function, you now have to pass the event into your super.signIn function on line 61-ish:
in customSignIn.js around line 61 onClick={() => super.signIn()} ---> onClick={(event) => super.signIn(event)}
in customSignIn.js around line 61
onClick={() => super.signIn()} ---> onClick={(event) => super.signIn(event)}
or you will get this error: Uncaught (in promise) TypeError: Cannot read property 'preventDefault' of undefined .
Uncaught (in promise) TypeError: Cannot read property 'preventDefault' of undefined
Here is the changes they made: github.com/aws-amplify/amplify-js/...
Here is the article I used to figure out what was wrong: stackoverflow.com/questions/475077...
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hey everyone, due to a recent change to the Amplify signIn function, you now have to pass the event into your super.signIn function on line 61-ish:
in customSignIn.js around line 61
onClick={() => super.signIn()} ---> onClick={(event) => super.signIn(event)}
or you will get this error:
Uncaught (in promise) TypeError: Cannot read property 'preventDefault' of undefined
.Here is the changes they made: github.com/aws-amplify/amplify-js/...
Here is the article I used to figure out what was wrong: stackoverflow.com/questions/475077...