You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to implement S3 file hosting at wasabi using the examples from their docs. While setting up credentials with SharedIniFileCredentials works great in Node, I would need to use the same functionality inside the browser.
Here, I get the following error
aws_sdk__WEBPACK_IMPORTED_MODULE_1___default(...).SharedIniFileCredentials is not a constructor
This is my code (that runs great inside node, but throws an error inside a React component):
The main reason why I am trying to do this is because I want to load images stored inside a bucket that are not publicly available into a FE (React) component.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am trying to implement S3 file hosting at wasabi using the examples from their docs. While setting up credentials with
SharedIniFileCredentials
works great in Node, I would need to use the same functionality inside the browser.Here, I get the following error
This is my code (that runs great inside node, but throws an error inside a React component):
The main reason why I am trying to do this is because I want to load images stored inside a bucket that are not publicly available into a FE (React) component.
Thanks for the help.
Beta Was this translation helpful? Give feedback.
All reactions