在过去,我有这样的事情...
const HttpsProxyAgent = require("https-proxy-agent");
new HttpsProxyAgent(URL)
但是当我转换为ESM ...
import HttpsProxyAgent from "https-proxy-agent";
// Also tried
// import * as HttpsProxyAgent from "https-proxy-agent";
new HttpsProxyAgent(URL)
我知道...
(节点:7856)UnhandledPromiseRejectionWarning:TypeError:HttpsProxyAgent不是 构造函数
那我现在该如何完成呢?节点是否支持本机ES6代理?