dispatchFetch does not accept node 18+ builtin FormData
object
#351
Labels
dependency
Issue in dependency
Milestone
FormData
object
#351
Hey, I'm in the midst of updating a project to use miniflare 2.7 and found that passing a
FormData
object that's builtin to node 18 as the body of adispatchFetch
request no longer works. This was working prior to 2.7, so I'm assuming it's related to the new version ofundici
that got pulled in.Importing
FormData
fromundici
instead of using the global one works, which is what I've done in the linked PR. But perhaps there's a way to get undici to recognize otherFormData
implementations? I haven't looked at undici's internals yet, so I don't know if that's possible.We're also using a polyfill lib called @web-std/form-data that we maintain in-house, which also worked with miniflare 2.6 and below but no longer works with 2.7. We're thinking about updating it to use
undici
'sFormData
, which should solve the issue there, but if there's a simple way to get the existing implementation to play nice with miniflare that would be cool too.The text was updated successfully, but these errors were encountered: