Deno

D

Deno

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

Join

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.

Is assertObjectMatch too type-strict?

If you have two typed objects, actual and expect, of the same type, assertObjectMatch doesn't let you use the expect object: ```ts import { assertObjectMatch } from '@std/assert'; ...

Full-stack development based on Deno2?

Are there any good examples or open-source projects recommended for full-stack development based on Deno 2 + Vue + Vite?thanks

deno on alpine-linux

Hello, I'm trying to install deno on alpine linux installed from helper scripts (bash -c "$(wget -qO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/alpine-docker.sh)"), it says it is installed but I can't execute anything with it, any known solutions?
No description

If I dont have to explicitly install a node pacakge to use it how do I get intellisense?

For example with express, I can import express from "npm:express" but how can I get VSCode to give me some intellisense for the package?