I tried making a request by creating axios.create in nodejs and found that adapter http is not available in the build. #6288
Unanswered
SEOKKAMONI
asked this question in
Q&A
Replies: 1 comment
-
Any chance you build your code with any bundler? Axios is an isomorphic library, so the target platform settings must be set correctly in your bundler config. The browser version does not have an http adapter but uses an xhr adapter instead which, however, is not supported in Node.js (unless it is shimmed by the testing environment). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I tried making a request by creating axios.create in nodejs and found that adapter http is not available in the build.
I was developing a library with nodeJs and I tried to upload and use that library on npm, but I got the following error.
Do I have to designate an adapter separately through a library like http? Please give me a solution.
Beta Was this translation helpful? Give feedback.
All reactions