avem
avem
Explore posts from servers
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/[email protected]/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/[email protected]/node_modules/tough-cookie/dist/cookie/canonicalDomain.js:5:27:
5 │ const node_url_1 = require("node:url");
1 replies
PD🧩 Plasmo Developers
Created by avem on 12/6/2024 in #👾extension
Inject content script manually
Hey, how to tell PlasmoCSConfig to not create entry in manifest, since I inject content script manually and only on activeTab?
2 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
HHono
Created by avem on 10/14/2024 in #help
Pass context to exception handler
Hey, is there a way to pass some context about request to the exception handler via Hono context?
4 replies