TooTallNate / proxy-agents

Node.js HTTP Proxy Agents Monorepo
https://proxy-agents.n8.io
872 stars 229 forks source link

Property 'emit' does not exist on type 'HttpsProxyAgent<Uri>'. #183

Closed ttodua closed 1 year ago

ttodua commented 1 year ago

this line: https://github.com/TooTallNate/proxy-agents/blob/main/packages/https-proxy-agent/src/index.ts#L138 throws an error when we use it in ts project: error TS2339: Property 'emit' does not exist on type 'HttpsProxyAgent<Uri>'. do you know what should I do?

TooTallNate commented 1 year ago

You need to update @types/node.

ttodua commented 1 year ago

the same happened for the below:

[tsl] ERROR in /home/travis/build/ccxt/ccxt/ts/src/static_dependencies/proxies/http-proxy-agent/index.ts(114,39)
      TS2339: Property 'keepAlive' does not exist on type 'HttpProxyAgent<Uri>'.

but yeah , I will try updating, it should fix, thanks