Deno

D

Deno

Chat about Deno, a modern runtime for JavaScript and TypeScript.

Join

Specifying default script configuration

Is there an equivalent to Python's Setuptools project.scripts for deno.json? Currently the install command for one of my package CLIs looks like: ```...

Reverse Proxy issues after upgrade (Nginx)

After upgrading my fresh 2 project to the lastest fresh on my VPS client side js/Preact stopped working. The error persist on default counter project as well. I have tried dev and builds and it persists. Error:...

Deno looking for an org that doesn't exist

I'm attempting to access: https://console.deno.com/u/<myaccount> and it is returning: 404 ORGANIZATION_NOT_FOUND 🔍 ...

FFI callback with multiple parameters

Hey could someone please help me with this interface definition: ```cpp MODULE_API auto getDevices(...

403

I was normally developing my web program today when I suddenly found that my account was blocked with a 403 error. Can you tell me the reason?
No description

Is tsconfig.json still needed with Deno?

Yeah that basically. Assuming I'm not using a js framework btw

Local KV not saving data

I find very often that local KV data are not persisted when the server restarts, not all the time but it happens. Is there a way to force KV to write-to-disk always?

How to use performance.now in deno_core

I want to use performance.now() in deno_core, how should I do it? I tried writing deno_web in extensions, but when I write this package in cargo.toml, it throws an error during build.
No description

Deno is broke

Hi, I woke up this morning intending to run some tests. However, I'm encountering a memory leak in Deno (file attached). Additionally, I received a warning stating, "Deno server crashed 3 times in the last 5 minutes and won't be restarting." It's worth noting that this warning appeared before I even ran the tests. Can I reinstall Deno? How can I completely remove Deno from my system and reinstall it? I recently added the deno deployctl could that be causing the issue?...

Accessing structs via FFI

Hi, I am trying to do some FFI. On the Rust side I have this struct ``` #[repr(C)]...

Cannot find name 'Deno'.ts(2304)

I am getting this vscode error even though "deno.enable": true is set in my .vscode/settings.json I have created a basic project to reproduce. (See screenshots) Setting the following will make the error disappear from my ide. But this is not a solution. "typescript.validate.enable": false...
No description

Is possible to spawn a worker inside an http?

Is it possible to spawn background workers on Deno Deploy? My goal is to handle an HTTP request, return a response immediately, and continue running a long-running process (3–5 minutes) in the background. trigger a worker rather than call a separate application. The background task involves agents/Mistral implementation below, this are the logs: ```logs [2025-11-19T21:09:32.969Z] [INFO] [LINE 559][chat_response.ts][spawn_agent_worker] Function called for answer agent...

vite crashes on pg-types

When importing npm:pg-types@^4.1.0 during SSR, it fails with the following error.
TypeError: Cannot add property Encoder, object is not extensible
TypeError: Cannot add property Encoder, object is not extensible
It's caused by a common NPM max compat export pattern below in postgres-bytea....

Cannot override the CSP defaults despite what the doc says

When I add "img-src 'self' data: 'https://firebasestorage.googleapis.com'", to my csp[] list, I get:
Ignoring duplicate Content-Security-Policy directive 'img-src'
How do i override the default img-src 'self' data: that I see in the header? Source: https://fresh.deno.dev/docs/plugins/csp...
No description

http url parameters question

Hi yall, I am currently trying to make a Deno http server for the funs, but I am walking into a problem. I want to have 3 pages: /, /thing and /thing/:id. If the route is /, it directs to home, if the route is /thing/:id, then it directs to that page, and if the route is /thing/:id but without a (valid) id, then it directs to /thing. Is there a way to do this without putting the handlers for /thing and /thing/:id in seperate?...

examplePath does not exist on type LoadOptions

Hi yall, I am trying to implement load for my dotenv, but for some reason it says that examplePath does not exist on type LoadOptions. Are the docs outdated?

Testing a Deno project with Vitest

Is it possible ? I have a monorepo mixing Deno & Node package. I wanted to use only a single testing library like Vitest If we use vitest as a runner : can't resolve Deno import style like import { generate } from "@std/uuid/unstable-v7"; if we use vitest as a library : error see issue https://github.com/denoland/deno/issues/31302...

error[no-slow-types]: super class expression was too complex

I am using Effect, and when I try to lint the codebase I get errors about super classes ``` x deno lint error[no-slow-types]: super class expression was too complex...

Publish binaries to JSR and load them using Deno.dlopen()

Hey is it possible to publish binary files such as .dll or .so files and then access them via Import in an other package? I would like to publish binaries to JSR, for example like this: deno.json...
Next