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 1 reply

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
1 reply
@bhaviklotia23
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants