We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am developing a axios-adapter-uniapp for uniapp, when I apply it in wechat miniprogram, I got ReferenceError: FormData is not defined.
axios-adapter-uniapp
uniapp
wechat miniprogram
ReferenceError: FormData is not defined
It seems to be used in inside axios, and I couldn't Eliminate this influence.
axios
The axios-adapter-uniapp work with axios^0, couldn't work with axios^1.
axios^0
axios^1
Can you give me some guidance? Thank you very much.
here is the adapter [https://github.com/lcysgsg/axios-adapter-uniapp/tree/v1](https://github.com/lcysgsg/axios-adapter-uniapp/tree/v1)
Avoid being affected by FormData and Blob.
FormData
Blob
1.3.2
custom
No response
The text was updated successfully, but these errors were encountered:
Actually, there are two other places with the same problem:
lib\platform\browser\index.js
classes.Blob
lib\env\classes\FormData.js
form-data
Node
It was tested on my local. This allows the combined adapter to run across platforms, not only Node and Browsers.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Describe the issue
I am developing a
axios-adapter-uniapp
foruniapp
, when I apply it inwechat miniprogram
, I gotReferenceError: FormData is not defined
.It seems to be used in inside
axios
, and I couldn't Eliminate this influence.The
axios-adapter-uniapp
work withaxios^0
, couldn't work withaxios^1
.Can you give me some guidance? Thank you very much.
Example Code
Expected behavior
Avoid being affected by
FormData
andBlob
.Axios Version
1.3.2
Adapter Version
custom
Browser
wechat miniprogram
Browser Version
wechat miniprogram
Node.js Version
wechat miniprogram
OS
wechat miniprogram
Additional Library Versions
No response
Additional context/Screenshots
No response
The text was updated successfully, but these errors were encountered: