DenoDDeno
Powered by
Nissan AhmedN
Denoβ€’3y ago
Nissan Ahmed

`@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.

Here's the playground link or the snippet:
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"));

Any idea what to do next?
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,944Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Deno KV on deno deploy
MolanMMolan / help
11mo ago
MongoDB connection error on Deno Deploy
tas13Ttas13 / help
3y ago
Deno blog error while trying to deploy it on deno deploy
Yash GosaraYYash Gosara / help
2y ago
Deno deploy see error
lasseLlasse / help
3y ago