New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
missing HTTP adapter? #456
Comments
Hmmm... I changed webpack to export to |
@mzabriskie ping I just wanted to follow up on this to try and get a better understanding of why this happens. I found that the build is different depending on if
As such, if I configure
Now, when I change to
Shouldn't the build be consistent no matter what |
The idea here is to not include the |
@nickuraltsev Got it. Any suggestions on how to build |
@UnsungHero97 Did you resolve this? I'm having the same issue - trying to build a single bundle I can use on both the browser and node. At the moment I'm having to inject the xhr adapter into the defaults in Node. It works but isn't a clean solution. |
I ended up creating 2 separate builds, each targeting their respective environments, 1 for web and 1 for node. |
Using the
Makes the output library both working on the web and node. |
Axios v0.14.0
Node v6.6.0
I'm trying to do a simple GET, and I'm faced with
ReferenceError: XMLHttpRequest is not defined
. I was looking through the code indist/axios.js
, and I'm seeing something unexpected:Webpack seems to be requiring the same dependency for both XHR and HTTP adapters,
__webpack_require__(10)
. Further, when I search forhttpAdapter
anddispatchHttpRequest
, nothing comes up.Is the v0.14.0 release missing the HTTP adapter?
The text was updated successfully, but these errors were encountered: