When using the library with Expo, and run npx expo start, observed that the Storage uses fetch instead of xhr for making network requests. This caused that the Storage.get() returns a non Blob, response.Body.
The metro bundler respect the browser module in package.json, but observed it didn't pick up the resolution during testing. The cause is that the module entry doesn't contain an extension name.
Description of changes
Issue #, if available
https://github.com/aws-amplify/amplify-js/issues/13853
Description of how you validated changes
When using the library with Expo, and run
npx expo start
, observed that the Storage usesfetch
instead ofxhr
for making network requests. This caused that theStorage.get()
returns a nonBlob
,response.Body
.The metro bundler respect the
browser
module inpackage.json
, but observed it didn't pick up the resolution during testing. The cause is that the module entry doesn't contain an extension name.Checklist
yarn test
passesChecklist for repo maintainers
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.