You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
If the runtime environment does not have/support FormData and Blob. How should I do? #5543
Activity
lcysgsg commentedon Feb 14, 2023
Actually, there are two other places with the same problem:
lib\platform\browser\index.js->classes.Blobgot the same issue. I am going to send a PR as a reference example.lib\env\classes\FormData.jsimport aform-datalib, it also has problems withFormDatais unavailable. And I thought of two options to resolve:form-datato help fix the issue, and askaxiosto update the dependent version.axiosmake sure importform-dataonly when environment isNodeinlib\env\classes\FormData.js.It was tested on my local. This allows the combined adapter to run across platforms, not only Node and Browsers.