-
Notifications
You must be signed in to change notification settings - Fork 289
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
Browserify of formdata does not has submit method #201
Comments
I have the same problem, I'm trying to browserify the httpsnippet library with webpack, which also depends on this module. |
My solution is sending request with node-fetch instead of using the In my opinion, form-data and node-fetch play well together. |
@mondwan That is the correct solution. As of node-fetch/node-fetch@ffac417 node-fetch will properly use FormData. Personally I think the "submit" api should be removed as it deviates from creating a server side shim for FormData (as per #124) however this would break a bunch of stuff. I'm going to close this for now but feel free to ping me if you have any other issues using this module isomorphically. |
Hello,
I have a problem when using this module with browserify. As browser field in
package.json
in this module honorsglobal.FormData
, however, the builtin one does not provide implementation forsubmit
.I get an exception from the compiled script about
submit is not a function
as a result.I am wondering how to tackle this issue? Either overriding behavior of
browser field
or other alternative implementation are welcome.The text was updated successfully, but these errors were encountered: