Skip to content

Error in importing AWS from aws-sdk in react vite application #4538

Answered by ayushgupta-1
ayushgupta-1 asked this question in Q&A
Discussion options

You must be logged in to vote

solution was to add below script in the body of index.js

<script> window.global = window; window.process = { env: { DEBUG: undefined }, }; var exports = {}; </script>

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ayushgupta-1
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant