Deno

D

Deno

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

Join

Serve file from inside compiled directory

Hey, I am currently trying to compile a simple WebApp that consists of a simple html, css and js file. Inside my index.ts file is just a simple serveDir from the std library. When I try to compile my app using deno compile, the server is unable to find files from the directory that I included when compiling. This is my server.ts file:...

[Solved] ✅ How to debug deno's Fresh framework with Vscodium?

The create app cli doens't create the required launch and task files

Electron equivalent for Deno?

Hey I am currently trying to build a desktop app and want to use Deno as my backbone. I tried @webview/webview_deno but it looks like this project is sadly abandoned and lacks a lot of features. Is there an other was on building a small footprint GUI App for cross platform use using Deno? I really liked the minimalistic API that webview_deno provided. Maybe someone else does have an idea on what to use 🙂...

OTEL context propagation with queues

Using Deno queues I want to make a span hierarchy like this. ``` parent-span enqueue-span listen-queue-span...

update version in import?

Can someone help me to understand, what's the recommended approach for updating version specifiers in imports? (Without doing it by hand 😉 ) Currently using that for devDependencies , but deno outdated and deno update do not seem to check for that, even though the specifier can be found in the lock file. I also tried to find the right docs for that, but wasn't able to....

postinstall failing for rollup

Upgrading to fresh 2 and running in a Docker container the postinstall script for rollup (a dependency of vite) is failing. For what it's worth, this appears to work just in my mac, but is failing docker & github actions builds. Thanks! ```13.71 Download https://registry.npmjs.org/@rollup%2frollup-darwin-arm64 13.81 Download https://registry.npmjs.org/@rollup%2frollup-linux-arm-gnueabihf 13.96 Download https://registry.npmjs.org/@rollup%2frollup-linux-riscv64-musl...

Error stack trace giving incorrect line number (possibly related to async eval?)

In a handler for a Fresh application I noticed that assertion errors were giving the wrong line number. Throwing an error gives a line number of 22 in the attached error message. However, the actual error is being thrown on line 162. deno.json and deno.lock attached. Any idea what might be causing this? Thanks! ```deno --version deno 2.3.5 (stable, release, aarch64-apple-darwin)...
No description

How to install Deno on raspberrian?

Hi guys im trying to install deno on my raspberry pi so I can run my discord bot, but I can't install deno. I have tried the curl install and the cargo install. The curl said that /home/blablabla/home/.deno/bin/deno wasn't found. The cargo installation said that the Python downloader failed, and also had a 404 error....

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