Closed coreyculler closed 2 years ago
Hello @coreyculler
I created a Gatsby app with our Authenticator, and built it, and everything was working fine. So I'm not sure where the problem is here.
I looked at the demo app, and I see it's not giving any errors.
Could you double check the aws-exports file? Maybe that's not working correctly? If you change it to Amplify.configure({})
what happens?
Here is my Gatsby starter app I created that works with aws-amplify.
The exports file was good and worked with the other libraries and utilities, but using Amplify.configure({}) did nothing. For now, I'm going to run with the v1 components since they work. I'm new to React and Gatsby, so it's certainly possible I'm doing something wrong or there's an issue with my dependencies. I've used the Amplify UI components for Vue a lot and I've never had any issues with those so this seems to be specific to the React v2 components.
@coreyculler ! That works, but if you have time, double check my starter app I uploaded. Is there something different between that app and yours?
I'll have to give it a deeper look - I looked at the main component and I didn't see anything that stuck out as different but I'll have to check your versions and stuff too.
I can't reproduce this, closing this for now. If this occurs again please add a link to repo where this can be reproduced.
Looks like the same issue here #1226
I think this is still a bug. I've got it to work in gatsby with the following hint: https://github.com/aws-amplify/amplify-ui/issues/2598#issuecomment-1249822959
On which framework/platform are you having an issue? React
Which UI component? Authenticator
How is your app built? React/Gatsby
Please describe your bug. The Authenticator widget renders but whenever you try to login or sign up nothing happens. In Chrome devtools, no requests are happening whenever the button is clicked, so it's not reaching out to Cognito.
After downgrading to the v1 authenticator component, the login works as expected.
The code for the component is this: