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
when I replace node-fetch with cross-fetch on the import I get a type error on the { agent }
No overload matches this call.
Overload 1 of 2, '(input: string | URL | Request, init?: RequestInit | undefined): Promise<Response>', gave the following error.
Object literal may only specify known properties, and 'agent' does not exist intype'RequestInit'.
Overload 2 of 2, '(input: URL | RequestInfo, init?: RequestInit | undefined): Promise<Response>', gave the following error.
Object literal may only specify known properties, and 'agent' does not exist intype'RequestInit'.ts(2769)
Thanks,
The text was updated successfully, but these errors were encountered:
How do you use cross-fetch in a node app where you need to use network proxies? For node-fetch@2 I can just
when I replace node-fetch with cross-fetch on the import I get a type error on the
{ agent }
Thanks,
The text was updated successfully, but these errors were encountered: