Deno

D

Deno

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

Join

Linting browser code?

What's the approach for using deno lint/deno lsp when it comes to JS/TS written for the browser that will be bundled ahead of time? Is there a way to configure lint rules to use a specific context for specific files?
No description

return value setTimeout and Deno.unrefTimer

Hi, In the recent version, I had no trouble passing the return value from setTimeout to Deno.unrefTimer. But today I get this: ```...

Crons are not supported in Deno subhosting project

I get message from log: "Crons are not supported for preview deployments. Cron jobs will not be executed in this context". However, as shown in the image, this deployment has two URLs, which should be both a preview deployment and a production deployment.
No description

Deno lint marks reachable code as unreachable ?

deno lint marks a line as unreachable, which is reachable. throw new Error("Exceeded maximum retry attempts"); in function test() this line is marked as unreachable....

Test Case Names Disappearing?

Has anyone else run into this? Some of my test case names disappear: ``` running 15 tests from ./tests/config_test.js Configuration can be loaded from options only ... ok (19ms) ok (8ms)...

Accessing the `Deno.lint` namespace for Intellisense

Hello, I have been trying to author a Deno.lint plugin following the guide. However, I can't get VSCode to recognize the namespace to get Intellisense to work. I just get the error: Namespace 'Deno' has no exported member 'lint'.deno-ts(2694)...

Can't Explore Prisma DB

Regardless of what environment/instance I try, when I click on explore in the databases view, I get this error. error ID: c6a0c2982d524cb59561bd3d8af50bdd...
No description

Testing fails for temporal in deno environment

``` import { TestWorkflowEnvironment } from "@temporalio/testing"; beforeEach(async () => { testEnv = await TestWorkflowEnvironment.createTimeSkipping();...

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
Next