-
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
'Sign in' button in Authenticator UI triggers error message #139
Comments
This could be a red-herring, but this exact same issue started happening to us only when making a production build* on the CI server with npm, i.e. The project was scaffolded with create-react-app. The resolution was to use yarn 1.3.2 and creating a build with * a "production build" in create-react-app bundles and minifies all js code into a single file
|
I can confirm this is a new bug. I have both of the aws-sdk versions forced to match at 179. I still get the error. I get this error in yellow box: ce.util.crypto.lib.randomBytes is not a function |
@jsancho I still got the same error after doing the following (yarn 1.3.2 )
Any suggestions here? |
If I were to guess, I'd say that the new effort in reducing the dependencies has made something break during the bundling and minification process. I'm new to React and webpack, so this is a bit beyond my level of skill at the minute. Alternatively, you could always revert back to amplify v0.1.30, which did not seem to have this problem... |
This seems to be fixed now. aws-sdk was broken. A new version has fixed it. Or maybe it was amazon-cognito-sdk that was broken. Whatever it was, my app is working again. |
@mbahar are you still getting the error? I'm not able to reproduce in my "create-react-app" test app. If still happening, could you run |
Fixed after the update. |
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 |
In React ;
Sign in action in Authenticator UI triggers following error message regardless of username/password: WEBPACK_IMPORTED_MODULE_0_aws_sdk_global.util.crypto.lib.randomBytes is not a function
I have used Mobile Hub generated aws-export.js with user Sign in enabled.
The text was updated successfully, but these errors were encountered: