Deno

D

Deno

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

Join

Prettier plugin support with deno fmt

Hi, is there any way how to achieve this using deno fmt? Work around here is to chain deno fmt with prettier execution (which handles only the plugin action), but that's a bit awkward. https://tailwindcss.com/blog/automatic-class-sorting-with-prettier...

threejs, typescript and vite => everything threejs is any

Hi all, I am coding a dead simple threejs experience where I hoped to be able to use typescript. But all that's imported from the three import is considered as any and there is no way to navigate to the source definition :/ ...

How to extend `serde_v8` to handle custom logic?

Hi guys! I'm currently I have the following struct to represent my Tensor object: ```rust // Type alias for TensorElementType (External lib proxy) // https://serde.rs/remote-derive.html #[derive(Debug, Serialize, Deserialize)]...

Deno 2.0 Bad resource ID after discord.js joinVoiceChannel

Hi, Seemingly out of nowhere, my deno 2.0 discord.js bot is throwing a crashing Bad resource ID error that seems uncatchable. The error seems to occur after joinVoiceChannel is executed and returned. It has previously been working with no issue for the last two days, and I've attempted to revert all changes, and the issue seems to persist. Any tips to resolve this would be great....

Vscode deno error with library not navigable

Trying to navigate from vscode console to the code shown in a stacktrace with line and column. If i call the same method in my code (and have also the import) the navigation works perfectly (so http import maps are properly configured). Am i missing something? Is it possible? ...
No description

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....