aws4 icon indicating copy to clipboard operation
aws4 copied to clipboard

AWS4 package issues with React Application

Open prateek1406 opened this issue 1 year ago • 0 comments

Hi, I need to generate a signed request to hit an API Gateway(secured with IAM). I need to implement this in a React application, so I am using aws4 to sign the request. But the React Application is giving me errors due to webpack issues like Webpack >5, which needs polyfill. I am trying to resolve them by writing a fallback in node_modules/react_scripts/config/webpack.config.js for crypto, stream etc. But still not working. One fix I got from Stackoverflow:

  1. Downgrade the react-scripts version from 5.0.0 to 4.0.3 but in that there are many package vulnerabilities. Please suggest how to use aws4 in React^18 and react-scripts^5.0.0

prateek1406 avatar Jun 19 '23 14:06 prateek1406