Error in importing AWS from aws-sdk in react vite application #4538
Answered
by
ayushgupta-1
ayushgupta-1
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
ayushgupta-1
Dec 18, 2023
Replies: 2 comments 1 reply
-
solution was to add below script in the body of index.js
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ayushgupta-1
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
solution was to add below script in the body of index.js
<script> window.global = window; window.process = { env: { DEBUG: undefined }, }; var exports = {}; </script>