Closed airamrguez closed 4 years ago
This is a Webpack issue, not a Haul one. What I can tell though from the error is that @aws-sdk/url-parser-node
is trying to use url
module which is only available in Node. You could try polyfilling url
module. It seems weird that @aws-sdk/url-parser-node
is used in the first place.
You can also try aliasing @aws-sdk/url-parser-node
to @aws-sdk/url-parser-browser
.
@zamotany Thanks for your fast response and guidance!!! I’ll try tomorrow morning 🙂
@zamotany aliasing @aws-sdk/url-parser-node to @aws-sdk/url-parser-browser worked! Thanks Again!
Hello!
Environment
RN 0.62.2 I'm using haul version 0.22.1 which I have installed today.
Description
I'm trying to make Haul work with my React Native project and I have an issue with the
aws-sdk
from Amazon. This sdk has circular references and I think this is the cause of the error in Haul.Reproducible Demo
In an empty Haul project, just simply try to import Amplify from
aws-amplify
.This is the output that I get:
In fact, if you build the same project using Metro bundler you get some warnings like this:
But in Metro, despite those warnings, it works.