-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Using axios error #128
Comments
right now what I did is I added it into the externals to make the webpack build successful |
The |
after adding
putting it into the externals is working. |
You can list |
i have exactly the same problem. replace "./lib/adapters/http.js" to "./lib/adapters/xhr.js" seems to work. |
None of the solutions mentioned above solved it for me. Could someone guide me to an example of this boilerplate using axios or any other HTTP library? Would be much appreciated! Thanks |
This is real... see this branch, it work. @chentsulin is right, but it just problem of json file. |
@jhen0409 Should we support |
I think yes, because node require json file is natural, but it was broken by webpack. |
Hi I have a rest api and I want to use a library called Axios to do ajax requests on my api but when I tried adding the package
npm install axios --save
and import it into one of my componentimport axios from 'axios'
it gives me this errorany work around or hints of the problem? Thank you so much for helping!
The text was updated successfully, but these errors were encountered: