Closed Nkmol closed 2 years ago
Duplicate of https://github.com/octet-stream/form-data/issues/57
Hi, thank you for reaching me out with this issue. I'm not sure why is this happening, but it seem like TS maps ReadableStream
to NodeJS.ReadableStream
an I don't understand why.
Please, keep further discussion by the issue I mentioned.
v6 is released and should be compatible with node-fetch BodyInit
type (tested with node-fetch v3.3.2 on TypeScript 5.2.2), check out release notes for more information: https://github.com/octet-stream/form-data/releases/tag/v6.0.0
Contrary to the readme, the
FormData
object is no longer type-compatible with thebody
parameter of node-fetch 3.2.1.Workaround is using the
form-data-encoder
.