`@sentry/node` is throwing an export error on Deno Deploy
Hello, this is my first time using Deno. I was trying to use the
@sentry/node
@sentry/node
client on deploy, but met with this error during compile:
Uncaught SyntaxError: The requested module '/v129/https-proxy-agent@5.0.1/denonext/https-proxy-agent.mjs' does not provide an export named 'HttpsProxyAgent'
Uncaught SyntaxError: The requested module '/v129/https-proxy-agent@5.0.1/denonext/https-proxy-agent.mjs' does not provide an export named 'HttpsProxyAgent'
It also throws the same error on deno locally but it works fine when using
npm:@sentry/node
npm:@sentry/node
directive.
I also found that the esm.sh
@sentry/node@7.41.0
@sentry/node@7.41.0
version doesn't throw, but it doesn't work either. No error, no warning, and nothing gets sent to the DSN.
import * as Sentry from "https://esm.sh/@sentry/node";Sentry.init({ dsn: "https://example.com",});Deno.serve((req: Request) => new Response("Hello World"));
import * as Sentry from "https://esm.sh/@sentry/node";Sentry.init({ dsn: "https://example.com",});Deno.serve((req: Request) => new Response("Hello World"));