Deno

D

Deno

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

Join

Issue with deno workspace docs

Hey for deno workspaces name is expected to be in the tasks? or should it be a the top level in the deno.json?
No description

Deno support for Expo

I'm working on a project that is using Expo with React Native. Can Deno and Expo live in harmony in the same project?

502 Bad Gateway code: BOOT_FAILURE

My project has been running on Deno Deploy for 50+ days but today it wont take any request. The error says: ```...

Disable type checking and compilation for specific relative path

I have a relative path like ../../../../public/. Deno should not check that folder. But I couldn't find deno.json field for that. I tried this: ```json { // ... "exclude": [...

problem with start deno local server in docker container

So i have error
worker boot error: failed to create the graph
when trying import deno packages Import 'https://deno.land/std@0.224.0/http/server.ts' failed: error sending request for url (https://deno.land/std@0.224.0/http/server.ts) ...

Different behaviour between Node and Deno with npm package

I'd like to use deno for a project that requires packages which are only available on npm. The issue I'm having is that executing the same script on deno and node is producing different results. - on node, the execution produces the expected results(some "forward" logs) - on deno`, the execution pauses for a second at startup and then exits with no logs The script I'm working on is as follows:...

Add logo for deno deploy also

For stronger edge cloud branding and increased recognition, please consider adding a dedicated logo for Deno Deploy. This visual identity, similar to Deno Fresh and Deno KV, will enhance user experience and reinforce Deno's comprehensive edge computing ecosystem.

Deno test fails(using - superoak)

Hi. I am new to deno and I am struggling, can someone kindly assist. I am doing a backend test case for my code but it fails regards of what I do. I do not understand the error nor what to do about it. ```...
No description

watchFs

Does anyone else get the following i get this both on calling close and calling return error: Uncaught (in promise) BadResource: Bad resource ID watcher?.return(); error: Uncaught (in promise) BadResource: Bad resource ID watcher?.close();...

wasmbuild / speed rust crate vs native deno

I have coded an PV & XIRR function, one in rust linked to deno with wasmbuild, another in deno I benchmark the result and I was quite surprise that deno was better than Rust. Could someone explain those results ?...

deno-version v2.x and Deno.exit(0) not working as expected in GitHub Actions

```yaml name: Install Deno uses: denoland/setup-deno@v2 with: deno-version: v2.x ...

Deno needs better memory leaks debugging tools

Hello Deno team! From a few weeks I am facing a big memory leak issue in my Deno app. I used the chrome dev tools to figure out the source of memory leak but I found no clue! There is just a big ArrayBuffer on top with a retained size, when I open it to see the details it has some strange objects with circular references. There are no variable names or source paths of this data that can allow me to find the origin of the memory leak! I have double checked all of my code to find any clue, but nothing found! I am writing this to know if there are any tools that I can use with Deno to debug this issue? Is there any plan to develop some more lower-level tools that can allow debugging these kind of anonymous memory leaks? I have attached a heapsnapshot of my app below. May be you can find the root cause of the memory leak:...

Is there a way to lock an npm dependency without `deno.json`?

As in, one that's imported using import x from "npm:y"

Isolates

I would like to create an isolate so that i can use the broadcastchannel api; i understand that an isolate must include its own sandbox and its own virtual network. My confusion is how is this done it just sounds like a compile script with an exposed network; am i wrong what secret am i missing?

Best way to handle new static assets

Sorry for my first contribution being a question. But I'm building a website in deno 2 + fresh and noticed the fresh service needs to restart when static files change. I was hoping to add thumbnails to a directory under /static. What's the recommended approach for storing data from forms like images and serving them....

Using buf.build SDKs with Deno (and Deno Fresh)

Hi there! I'd like to use buf SDKs in my Deno Fresh project, they are located here: https://buf.build/wcygan/flock/sdks The typical way to accomplish this is like so: ```bash...

batching tasks

I'm calling an api and get an array of 2000+ items. I want to chunk these into batches of 100 and then process them all concurrently. I've tried BatchQueue but it looks like it stops after processing only the first batch. ```ts...

node-pre-gyp problem on macOs

Hi all, I want to use import validateSchema from 'npm:xsd-validator';...

Cannot assign number to "number | undefined" when using package.json

Hi. I'm having odd behavior when using a newly created Vite vanilla TypeScript template using deno init --npm vite@latest. Right after initialization I'm installing the game library https://www.npmjs.com/package/excalibur. A game object in the engine is written like this: ```ts import * as ex from "excalibur"; class GameObject extends ex.Actor {...

How do deno devs bundle .js for browser projects? (SPAs, chrome extensions, etc)

Is the easiest option to tell deno to emit a node_modules subdirectory so I can use esbuild? I'm trying to minimize configuration as much as possible.