Skip to content
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

AWS4 package issues with React Application #154

Open
prateek1406 opened this issue Jun 19, 2023 · 0 comments
Open

AWS4 package issues with React Application #154

prateek1406 opened this issue Jun 19, 2023 · 0 comments

Comments

@prateek1406
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant