Deno

D

Deno

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

Join

Since Upgrade DENO, compile fails.

Deno fails when I complie. A month ago no shows that error in console. It's break....
No description

Enabling labels to show up in error messages (WebGPU)

Hi! I was wondering if there is a way to enable validation error messages to include the label attribute of a WebGPU object. For example: I might get the error message Device::create_texture error: Texture descriptor mip level count 10 is invalid, maximum allowed is 8. I think it would be helpful if it indicated the label that was included in the TextureDescriptor when creating the texture.

Changing a projects deployment from local cli to a github branch based deployment

When I did [what I described in the title] the project startup wouldn't use the existing kv instance, instead it seemed to give me a new instance. Thankfully reverting back to deployctl based deployment got me back on my old data (it's backed up to s3 as well so no worries there) but I was wondering if this was a known issue (or intended), or if there was some way for me to ensure that I can switch to github deployments without migrating data. Maybe migrating data between kv instances is easier than i realize as well and I just haven't gotten that far, either way any helpful nudges are appreciated 🙂 In case anyone is interested in reproducing this scenario: - create deno deployment that saves some data - deploy it manually via cli...

mkdirsync is throwing an exception that can't be caught?

This code used to work, so I don't know what changed. export default { validateEnvironment()...

Demo for Desktop App

Does anyone have experience in developing desktop applications? Webiew and WebUi don't seem to be ready yet. Also, the flag "--no-teriminal" does not work....

Memory leak

I have this function to extract the information on the battery status of Windows using Power Shell, but I could notice that while periodically executing the function the ram memory usage increased, so it is possible that I am doing something wrong and causing this or it may be a bug in deno? ``typescript export async function getBatteryInfo(): Promise<BatteryInfo> { const command = ...

How to get source code from packages used in Helix editor?

I am using Helix with Deno LSP and everything works except go to definition for third party packages. I just get an empty buffer. In node I can the source code which I can then navigate. Anyone knows a solution for this?

What is the best way to find the specific npm package available on Deno?

I'm currently exploring how to utilize npm packages within my Deno projects. Given Deno's unique module system and its differences from Node.js, I'm trying to find the most efficient method to identify npm packages that are compatible with Deno. What are the best practices or tools I should use to search for npm packages that work with Deno? Any guidance or experiences you could share would be greatly appreciated!

Deno is not installed globally

Guys please help me, i'm using fedora at first. When installed it with curl -fsSL https://deno.land/install.sh | sh it's working only once, when i closed the terminal and opening it again i got bash: deno: command not found..., i don't want to use vfox too, because i need to use vfox use deno --global each time.:hooray_deno:...

Deno suddenly just stopped working and went down

We use Deno as a driver on top of a MongoDB for our 60K user platform. About an hour ago Deno just stopped working and the activity went to 0 from about 6 million calls.

About imports

Hi, I'm new to Deno and looking for answers regarding imports. 1. deno add @org/package registers the package at deno.jsonc.imports even if import_maps.json is present. Can this be configured, or is Deno moving away from placing import aliases in a separate file? On one hand, having a separate file seems maintainable; on the other, the import map is kind of a Deno "feature."
2. The documentation at https://deno.land/std@0.224.0 suggests that I should avoid using * when importing only one function (import * as fs from "https://deno.land/std@0.224.0/fs/mod.ts";). However, since version 1.5, Deno does tree-shaking, making this seem irrelevant. Is this correct?...

Use ESLint with Deno

Is it possible to use ESLint with Deno? I know that Deno has a build in formatter and linter but the ruleset is kinda small and plug-ins are not supported yet. Are there any guides out there on how to use ESLint with Deno? Thanks...

TypeError [ERR_STREAM_NULL_VALUES]: May not write null values to stream

Our production server has started crashing frequently because of this error. At this point, we have to seriously consider moving back to Node, unless someone here can help. This is all the details we get when the error is thrown: `TypeError [ERR_STREAM_NULL_VALUES]: May not write null values to stream...

[uncaught application error]: TypeError - ctx.request.body is not a function

`.post("/savedata",async (ctx) => { if (!ctx.request.hasBody) { ctx.response.status = 400; ctx.response.body = { error: "No data provided" }; return;...

How to update in a cli distributed via jsr?

My cli is installed using:
deno install -Agf jsr:@smallweb/embed
deno install -Agf jsr:@smallweb/embed
...

node_modules / package.json Auto Import Fix?

I'm using package.json to manage my dependencies. I'm using VSCode with the Deno extension. The auto import suggestions always tries to import from a file in node_modules, e.g.
import { Hono } from "../node_modules/hono/dist/types/index.d.ts";
import { Hono } from "../node_modules/hono/dist/types/index.d.ts";
I want it to import like...

Is it possible to capture console log output?

I see that console.log calls out to core.op_print. Is it possible to patch an object so that I can capture log output? Similar to how one might patch process.stdout.write with node?

Good way to re-export with document?

I have a library, and I want to rename my class. I want to keep backward compatibility, but I don't want new users to use it, so I want to make it as deprecated. Are there any good way to do re-export class, but with additional jsdoc?...

Has anyone set up Deno's LSP on WASM with monaco?

I want to create a web-only monaco editor for Deno scripts, is it possible to run it on WASM and connect to monaco language server plugin?