Deno

D

Deno

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

Join

deno queues on deploy

Does anyone have a simple example if deno queues + routing that works on demo deploy

compile to target, 'unzip' not found.

I am on linux ubuntu 22 I downloaded, uninstalled reinstalled, written to path unzip. however no matter what I do I get the error "cannot access unzip in path" ```bash TJ@WGDC:~/webview_ogs$ deno compile -Ar --unstable --target x86_64-unknown-linux-gnu main.ts Check file:///../webview_ogs/main.ts...

Recommendations for interacting with Excel sheets (.xlsx) and GraphQL?

I want to use Deno in production. Specifically, I'm looking into building a script that reads a .xlsx file and pushes some data to a GraphQL server. Is there a recommendation on what packages can / should be used? I've recently tried to set up Prisma, but that totally failed and to get it to work with Deno seems like a big workaround and a big time invest to understand what's necessary. So I hope my other script idea is going to be easier to implement or will I have too many compatibility issues again trying to use Deno with Excel sheets or GraphQL...? 😬...

Trouble with Deno imports

What's wrong with my import? The link is valid and I cached it. (https://deno.land/x/deno_dom@v0.1.43)...
No description

How to format on save with devcontainer

I'd like to automatically format my code when saving, but it's not working. devcontainer.json ```json { "name": "Deno DevContainer",...

How does form submission work?

I'm following the tutorial: https://fresh.deno.dev/docs/getting-started/form-submissions It says:
When the user submits the form, the browser will navigate to /search with the query set as the q query parameter in the URL. The GET handler will then filter the names array based on the query, and pass it to the page component for rendering....

Won't install `npm:@supabase/ssr`

I'm trying to build something with Fresh and Supabase and would like to use the @supabase/ssr package (which is still in beta). Deno won't load the package though, what am I doing wrong?

`RangeError: Offset is outside the bounds of the DataView` when trying to encrypt with AES-CRT

Hi, I'm trying to encrypt some files with aes128-crt, but I always get the error below. (Even if I just pass some random short string converted into an uint8array instead of the file's content) stacktrace: ``` RangeError: Offset is outside the bounds of the DataView...

Any way for VS Code to auto-complete library subdirectory in import?

Is there any way for VS Code to suggest subdirectory in a package (especially for npm package) when importing? I find it a bit tricky to need to look up the package documentation every time I need to import from a different subdirectory. Thank you!...
No description

get hours & minutes in a specific timezone

Maybe I search the wrong way, but all I'd like to do is to use a specific timezone in my project running on deno.dev. So how can I figure out a Date object's hour and minute (in a specifc timezone?)...

Connection refused when creating a local API server

I'm following Simple API server | Deno Docs: 1. Create server.ts: ```typescript const kv = await Deno.openKv(); ...

deno deploy queues

is there a special flag or setting required for queues in deno deploy , i ceated a very simple example that works locally but not on deploy ```ts app.get('/test', async(c) => { try {...

What is the difference between importing "preact" via esm.sh or npm:...?

What is the difference between importing "preact" via esm.sh or npm:...? "preact": "https://esm.sh/preact@10.19.2", or "preact": "npm:preact@10.19.2", ...

Deployctl, error: Uncaught (in promise) NotFound: Failed to spawn 'start': program not found

```powershell
deployctl logs a
i Provisioning a new access token... i Authorization URL: https://dash.deno.com/signin/cli?claim_challenge=example error: Uncaught (in promise) NotFound: Failed to spawn 'start': program not found...

is there a way to make the call stack in deno larger?

I already think this is a no from what I have gathered but I thought Id ask

where would i go to report a minor bug in module search on deno.land ?

hi, i noticed a minor bug in module search on deno.land. it's easily replicable. where would i report it, please? thanks. the tag "frontend development" doesn't apply, but none of them did, and i'm not allowed to post without one....

@headlessui/react + Fresh

I'm trying to use preact/compat to leverage @headlessui/react, but running into In the "imports" of my deno.json I have ``` "@headlessui/react": "https://esm.sh/@headlessui/react@1.7.17?alias=react:preact/compat,react-dom:preact/compat,@types/react:preact/compat&deps=preact@10.19.2",...

Is there any good tools to covert npm source code to deno source package?

I want to covert some old npm source package to deno source code

Environment Variable always returns undefined

I'm just trying to import the values from dotenv to the code, but it always returns undefined. deno version: 1.39.1 running command: deno run --allow-read --allow-env main.ts ...

Updated examples for "Roll your own JavaScript runtime" blog posts?

Hi all. I'd like to embed Deno in a project and I discovered the excellent series of "Roll your own JavaScript" posts on the Deno blog. Unfortunately, the examples don't work with current Deno because "op" has been replaced by "op2". I know updating the blogs is likely to take a while, but is it possible for somebody to post updated example code, or point to some example code using op2 that does something similar to what's the blog posts? I've tried to find examples in various places, including in the Deno code itself, but I really need a complete but simple example in order to understand what's going on....