TooTallNate/proxy-agents

TypeError: Class extends value undefined is not a constructor or null

ByFishh opened this issue · 4 comments

Hi, when I use this simple code with the latest version of http-proxy-agent I got this error. I'm using React + typescript with Vite.

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

const agent = new HttpProxyAgent('http://168.63.76.32:31

image

So this is code that is running on the browser?

image

Hi, I also get the same error. Is this package not supposed to be used in browser?

yeah same like @albertpratomo issue,
cc : @TooTallNate

Correct, this package is meant to be used in Node.js code, not in the browser.