Deno

D

Deno

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

Join

Unable to save environment variables on the Deno deploy website

Hello Everyone, Today I created a new nodejs + vite web application on Deno (No template). As I setup my project on the new Deno deploy website. I am unable to add any environment variables. URL: https://console.deno.com/org_name/appliction_name/settings...
No description

Https in Fresh 2 with Vite?

Hello! I'm in the process of upgrading from Fresh 1 to Fresh 2. I want to be able to run locally using https. It looks like http2.createSecureServer is not implemented in the latest deno yet? Thanks in advance! ``` deno task start Task start vite...

Warmup running indefinitely - App doesn't run

I'm deploying my app on Deno.com Today, after a new feature, I've noticed a new strange behaviour. See the attached image. There is an extremely long warmup, which doesn't produce logs and doesn't end successfully. ...
No description

How to install on windows?

I follow the instructiions on website and get this error ``` PS C:\Users\quela> irm https://deno.land/install.ps1 | iex irm : The underlying connection was closed: An unexpected error occurred on a send....

Is it possible to install packages directly from git hosts

Is it possible to install packages directly from a git host? For example, with pip I can do something like pip install git+https://<project url>.git. Is there a Deno equivalent for this?...

Running `deno` results in Fatal Error: HW Capability Found: [...]

Installed deno via PowerShell install script. Running simply deno in a terminal results in the error
Fatal Error: HW capability found: 0x178BFBFF 0xFED8320B, but HW capability requested: 0x20000000 0x00.
Fatal Error: HW capability found: 0x178BFBFF 0xFED8320B, but HW capability requested: 0x20000000 0x00.
deno --help fares no better. Online searches return nothing. All I know so far is that I believe the error to be from a dependency of deno; I tried searching the deno source and the string "HW capability" does not appear to be present. ...

NodeJS projects to Deno projects

I just recently found out about Deno and I already have used NodeJS in other projects and most clones of projects in github and such also use NodeJS The point is that I want to have the forks/clones but using Deno instead While I can't clone/fork them with a Deno version I will have to change it manually for compatibility purposes...

Using deno for OpenNeuro is producing errors

My code on terminal: deno run -A jsr:@openneuro/cli login deno run -A jsr:@openneuro/cli download --version 2.1.2 ds003626 ds003626-download/ ...

How do I still run .cmd with deno after 2.5.2?

How do I get around this change to still run cmd files with deno or do I just have to stick to 2.5.1? Using Deno.Command https://github.com/denoland/deno/pull/30818

Using Deno's readDir in a SvelteKit project?

If I have created a Svelte project using deno, and I am going to be static rendering it, can I use the Deno API in my typescript files? For example, suppose I want to call readDir?

Error while installing using cargo

all I did was run the supplied command from the website (cargo install deno --locked) after installing cargo, however it errors out during the build, is there something I'm missing here? `` error[E0658]: let` expressions in this position are unstable --> /home/magnus/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/deno_ops-0.238.0/op2/dispatch_slow.rs:150:8 |...

Where to set the migration command in provisioned prisma database

In the documentation it says to set the migration command during app assignment or database editing but during both no field for Migration Command is present Link to the docs where this is stated: https://docs.deno.com/deploy/reference/databases/#migration-and-schema-management...
No description

LSP auto-import in workspaces

What ? The Deno LSP seems to partially work in a workspace context. I've made a GitHub repository that can help you reproduce the issue: https://github.com/aburii/hono-backend ...
No description

Windows Server support?

Our YT-DLP environment is needing Deno to function. I placed the Deno.exe, updated PATH, and ran the --version test and it resulted in a popup error saying "The procedure entry point i IsWow64Process2 could not be lcoated in the dynamic link library {path}\deno.exe". This is on Win2016 server. Is this OS not supported by Deno? TIA for the help.

Getting file:///src/src/server/schema path doubling error on Deno Deploy

😩 Hi! I'm deploying a Hono app to Deno Deploy and getting a persistent path resolution error where src/ is being doubled: Module not found "file:///src/src/server/schema" My setup: Hono v4 from JSR (jsr:@hono/hono@^4.10.1) Deploying via GitHub Actions to Deno Deploy Using path aliases in deno.json...

Call a function from JsRuntime without handle_scope

Does anyone have any idea why the "handle_scope" method was removed from the JsRuntime struct? I 've been trying to call a function from a loaded file but this makes it pretty much impossible. Any idea how to do it without using execute_script? (as I want to capture the result)...

Permission sets not working with `jsr:@std/http/file-server`

This is my first time trying the new permission config, bear w/ me plz. I'm trying to use permission sets for a static file server task and it still asks for the permissions when running: Here is my deno.json:...

publish error different on CI

I run this command:
pnpm exec deno publish --dry-run --unstable-sloppy-imports --allow-dirty
pnpm exec deno publish --dry-run --unstable-sloppy-imports --allow-dirty
on my local project and in the CI....

Ambiguous linting on import type and jsdoc

I want to enforce the usage of import type when no value is referenced in the module, and it works most of the time. The issue happens when I reference another type using @see in jsdoc, this is very common for foreign keys in DAO / Entity interfaces such as Drizzle / Kysely. When this kind of reference exists, import type results in errors inside the jsdoc for value referencing; while normal imports results in the lint error of verbatim-module-syntax itself....

Custom Lint rule not applying in IDE with Deno Extension

When I'm using a custom lint rule, it applies the rule correctly when using deno lint but it is not applying the rule in the regular VS Code IDE. Is that expected behavior, or am I potentially missing an implementation piece that does that dynamic analysis.
Next