-
Notifications
You must be signed in to change notification settings - Fork 2.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
aws-amplify ^1.2.5-unstable.13 : Unhandled Rejection (TypeError): Cannot read property 'clientMetadata' of undefined #4411
Comments
try it: |
@DsEsteban what does your next.config.js file look like? See working example here: |
@DsEsteban After using the next.config.js that @mlabieniec cites above, I have authentication working on a very basic next.js app which looks like this:
As you can see I'm more or less using the .signIn code sample you've provided. Have you tried using the config @mlabieniec suggests? I don't think that's necessarily the root of your issue, but it's worth a shot. Also, is this happening with a standard 'npm run dev' or in some other particular case? |
Closing this issue due to inactivity. |
This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs. Looking for a help forum? We recommend joining the Amplify Community Discord server |
im using the unstable version bc i need some changes there in order to work fine with NextJs framework. But, when im trying the basic funcionality:
await Auth.signIn({ username, password, }) .then(data => { console.log('authData=>', data); }) .catch(err => { console.log('errLogin=>', err); });
I got the next error message:
Unhandled Rejection (TypeError): Cannot read property 'clientMetadata' of undefined
AuthClass.push../node_modules/@aws-amplify/auth/lib-esm/Auth.js.AuthClass.signIn.
may you please give me any advice to fix this?
The text was updated successfully, but these errors were encountered: