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
Contrary to the readme, the FormData object is no longer type-compatible with the body parameter of node-fetch 3.2.1.
Type 'FormData' is not assignable to type 'BodyInit | null | undefined'.
Type 'import("/Users/sandermol/www/tpg/devops/monitor/server/scraper/docker/node/node_modules/formdata-node/@type/FormData", { assert: { "resolution-mode": "import" } }).FormData' is not assignable to type 'FormData'.
The types returned by 'get(...)' are incompatible between these types.
Type 'import("/Users/sandermol/www/tpg/devops/monitor/server/scraper/docker/node/node_modules/formdata-node/@type/FormData", { assert: { "resolution-mode": "import" } }).FormDataEntryValue | null' is not assignable to type 'FormDataEntryValue | null'.
Type 'File' is not assignable to type 'FormDataEntryValue | null'.
Type 'import("/Users/sandermol/www/tpg/devops/monitor/server/scraper/docker/node/node_modules/formdata-node/@type/File", { assert: { "resolution-mode": "import" } }).File' is not assignable to type 'File'.
The types returned by 'slice(...).stream()' are incompatible between these types.
Type 'ReadableStream' is missing the following properties from type 'ReadableStream': readable, read, setEncoding, pause, and 21 more.ts(2322)
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.
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
.The text was updated successfully, but these errors were encountered: