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
Hi, I've got some issues with node-fetch v3.2.10 while trying to upgrade from v2.6.7 (tbf these issues appeared starting from v3.0.0).
When trying to compile typescript getting
node_modules/formdata-polyfill/esm.min.d.ts:2:11 - error TS2749: 'FormData' refers to a value, but is being used as a type here. Did you mean 'typeof FormData'?
2 new (): FormData;
~~~~~~~~
Or
node_modules/node-fetch/@types/index.d.ts:137:22 - error TS2749: 'FormData' refers to a value, but is being used as a type here. Did you mean 'typeof FormData'?
137 formData(): Promise<FormData>;
~~~~~~~~
Expected behavior
I expect not to get any issue
Your Environment
software
version
node-fetch
3.2.10
node
18.1.0
yarn
3.2.0
Operating System
WSL2.0 Ubuntu 20.04, Windows 10
Tried typescript v.4.7.4 and v4.8.4, both gets the same result
Reproduction
Hi, I've got some issues with node-fetch v3.2.10 while trying to upgrade from v2.6.7 (tbf these issues appeared starting from v3.0.0).
When trying to compile typescript getting
Or
Expected behavior
I expect not to get any issue
Your Environment
Tried typescript v.4.7.4 and v4.8.4, both gets the same result