TooTallNate/node-proxy-agent

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

shakeelghauri-dev opened this issue · 2 comments

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/node_modules/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/node_modules/agent-base/dist/src/index.d.ts(4,8): error TS1192: Module '"https"' has no default export.

Workaround: Add this to your tsconfig:

"allowSyntheticDefaultImports": true

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.