Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

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

Closed
shakeelghauri-dev opened this issue Apr 7, 2021 · 2 comments

Comments

@shakeelghauri-dev
Copy link

shakeelghauri-dev commented Apr 7, 2021

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.

@DanKaplanSES
Copy link

Workaround: Add this to your tsconfig:

"allowSyntheticDefaultImports": true

@TooTallNate
Copy link
Owner

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants