TooTallNate / node-proxy-agent

Maps proxy protocols to `http.Agent` implementations
285 stars 69 forks source link

upgrading proxy-agent from 3.1.0 to 4.0.1 shows errors in its own dependency #62

Closed shakeelghauri-dev closed 1 year ago

shakeelghauri-dev commented 3 years ago

I upgraded the package to the latest version and start getting the below errors at compile time from its dependency "agent-base"

_../../node_modules/proxy-agent/nodemodules/agent-base/dist/src/index.d.ts(2,8): error TS1192: Module '"net"' has no default export. _../../node_modules/proxy-agent/node_modules/agent-base/dist/src/index.d.ts(3,8): error TS1192: Module '"http"' has no default export. ../../node_modules/proxy-agent/nodemodules/agent-base/dist/src/index.d.ts(4,8): error TS1192: Module '"https"' has no default export.

DanKaplanSES commented 3 years ago

Workaround: Add this to your tsconfig:

"allowSyntheticDefaultImports": true
TooTallNate commented 1 year ago

This code in this repository has been moved to the proxy-agents monorepo, so I am closing this pull request. If you feel that this issue still exists as of the latest release, feel free to open a new issue over there.