Skip to content

Errors with http-proxy-agent/https-proxy-agent imports #1205

@LVerneyEC

Description

@LVerneyEC

Hi,

I had some issues with

import HttpProxyAgent from 'http-proxy-agent';
import HttpsProxyAgent from 'https-proxy-agent';
and was getting

 - Fetch failed: HttpsProxyAgent is not a constructor

Not sure how widespread an issue this is, but I fixed it by replacing

import HttpProxyAgent from 'http-proxy-agent';
import HttpsProxyAgent from 'https-proxy-agent';

with

import { HttpProxyAgent } from 'http-proxy-agent';
import { HttpsProxyAgent } from 'https-proxy-agent';

Best,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions