Comments (7)
Solved by downgrading AWS SDK. There is a bug in latest version: https://stackoverflow.com/questions/48174252/util-crypto-lib-randombytes-is-not-a-function-aws-cognito-js-throws-error-on
amazon-archives/amazon-cognito-identity-js#646
from serverless-stack-demo-client.
Which version of the aws-sdk did you use?
from serverless-stack-demo-client.
It would be great if we get a workaround. Downgrading to 2.177.0 doesn't seem to help.
from serverless-stack-demo-client.
I got the error when using the latest version. Then I downgraded to 2.177.0 and it worked.
from serverless-stack-demo-client.
This is my package.json for the serverless-stack-demo-client:
{
"name": "app-client",
"version": "0.1.0",
"private": true,
"dependencies": {
"amazon-cognito-identity-js": "^1.29.0",
"react": "^16.2.0",
"react-bootstrap": "^0.32.0",
"react-dom": "^16.2.0",
"react-router-dom": "^4.2.2",
"react-scripts": "1.0.17"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject"
}
}
from serverless-stack-demo-client.
This didn't fix it for me. What did fix it: I had to manually tell amazon-cognito-identity-js to pull aws-sdk 2.176.0 and redo npm install within node_modules/amazon-cognito-identity-js
from serverless-stack-demo-client.
@appernetic @aloukissas Thanks for tracking it down on your end guys.
from serverless-stack-demo-client.
Related Issues (20)
- TypeError: __WEBPACK_IMPORTED_MODULE_3__sigV4Client__.a.newClient(...).signRequest is not a function HOT 5
- improve aws-sdk import statement to reduce build size HOT 3
- Code Splitting succeeded, but css modular failure。
- [question] how to manage the api gateway paths without define them one by one in Routes.js HOT 7
- Login.js Ln 58 HOT 6
- Reload of app on RouteNavItem HOT 1
- How to use cognito groups HOT 2
- Add session state, App.js missing child props
- [feature] amazon-cognito-identity-js has been replaced by AWS Amplify HOT 1
- Exception in signOut HOT 2
- Is AuthenticatedRoute.js really needed? HOT 2
- How to isolate login page? HOT 2
- Why is the routes.js in the browser different to the one in the repo? HOT 4
- Login as home page? HOT 1
- how delete the User HOT 1
- `querystring` function cuts off args in url redirected to HOT 1
- Trying to get notes from localhost throws 403 HOT 1
- 500 Error after ListAllNotes section HOT 1
- Same users on multiple windows stay signed in.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serverless-stack-demo-client.