This repository was archived by the owner on Mar 9, 2026. It is now read-only.
Error in importing AWS from aws-sdk in react vite application #4538
Answered
by
ayushguptax
ayushguptax
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
ayushguptax
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
ayushguptax
-
|
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>