avem
avem
DDeno
Created by avem on 12/20/2024 in #help
Could not resolve "node:url"
Hey, I am trying to build deno with esbuild + @luca/esbuild-deno-loader. I am encountering such errors, most of the things I was able to fix, but this one is a dependency in a library which I need. Is there any way to work around it?
✘ [ERROR] Could not resolve "node:url"

node_modules/.deno/tough-cookie@5.0.0/node_modules/tough-cookie/dist/cookie/canonicalDomain.js:5:27:
5 │ const node_url_1 = require("node:url");
✘ [ERROR] Could not resolve "node:url"

node_modules/.deno/tough-cookie@5.0.0/node_modules/tough-cookie/dist/cookie/canonicalDomain.js:5:27:
5 │ const node_url_1 = require("node:url");
1 replies
DDeno
Created by avem on 12/3/2024 in #help
Worried about cold start
No description
12 replies
DDeno
Created by avem on 11/30/2024 in #help
Deno <> Sentry | captureConsoleIntegration and captureException not working?
Seems like captureConsoleIntegration and captureException are not working in Deno?
import Env from '@/env.ts';
import * as Sentry from "@sentry/deno";

if (Env.SENTRY_DSN) {
Sentry.init({
dsn: Env.SENTRY_DSN,

// Set tracesSampleRate to 1.0 to capture 100%
// of transactions for performance monitoring.
// We recommend adjusting this value in production
tracesSampleRate: 1.0,
integrations: [
Sentry.denoCronIntegration(),
Sentry.captureConsoleIntegration({levels: ['error']})
],
});
}

console.error("hahaha")
// throw new Error('test 1')
try {
throw Error("test 2")
} catch (error) {
Sentry.captureException(error)
}
import Env from '@/env.ts';
import * as Sentry from "@sentry/deno";

if (Env.SENTRY_DSN) {
Sentry.init({
dsn: Env.SENTRY_DSN,

// Set tracesSampleRate to 1.0 to capture 100%
// of transactions for performance monitoring.
// We recommend adjusting this value in production
tracesSampleRate: 1.0,
integrations: [
Sentry.denoCronIntegration(),
Sentry.captureConsoleIntegration({levels: ['error']})
],
});
}

console.error("hahaha")
// throw new Error('test 1')
try {
throw Error("test 2")
} catch (error) {
Sentry.captureException(error)
}
3 replies