Deno

D

Deno

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

Join

An existing connection was forcibly closed by the remote host

This error just randomly started coming up and I have no idea why, I never updated any of the surrounding code and this wasn't happening yesterday, system reboot isn't fixing it, and im not sending any weird data to the VLC Media Player or anything like that it's literally just asking for its status, why is this happening?? It seems to keep happening at random points in the code where it requests VLC, not in the same place every time. Could this do with the Deno update? https://github.com/Niterux/ChristmasMicScript/blob/main/main.js#L284...
No description

Deno + Jupyter - a couple of hiccups: jupyter execute and tests

First things first, Deno + Jupyter is amazing - kudos to the team. A couple of things that did not work out for me which I would like some more context to understand and try to fix/report on. I've originally reported on them here (https://github.com/rgbkrk/denotebooks/issues/8) and here (https://github.com/rgbkrk/denotebooks/issues/9). ...

Problem about using Deno docker image

The project can run locally, but after I built the project to docker image, created container with the image and run it with docker on my computer, it run out with following error: ``` Downloading https://github.com/felix-schindler/deno-argon2/releases/download/v2.0.2/libdeno_argon2.so 2024-12-12 16:25:58 error: Uncaught (in promise) Error: Could not open library: Could not open library: /deno-dir/plug/https/github.com/901e77fb36a064d7e5d8cfea1f471efd18d8302970caec522cb2c388e33fbf4b.so: cannot open shared object file: No such file or directory 2024-12-12 16:25:58 return Deno.dlopen<S>(await download(options), symbols as any);...

superoak and superdeno completeXhrPromises error.

I'm familar new to Deno. I started creating a simple app and wanted to do some simple HTTP assertion first. But i keep getting the below error is this a known issue ? the images attached i believe show what i'm trying to do etc. ```./server.test.ts (uncaught error) error: (in promise) ReferenceError: window is not defined (window as any)[SHAM_SYMBOL].promises,...
No description

Deploy -- Reverse proxy getting "close_notify" error

I've been running a reverse proxy through deno deploy for about 6 months without any new deployments. All of a sudden I am getting an error and don't know if it is a Deno thing, or the proxy source thing. Any suggestions on how to debug this?
No description

`deno run` that never writes to `DENO_DIR` or `deno.lock`?

I am working on an application that embeds a deno 1.46.3 binary and uses it to deno run some app plugins. The plugins are folders that are included in our app bundle, which contain deno configuration and .ts files. Because we need to sign our app bundle, and some plugins are bundled within the app bundle, we run into the issue where the signature will be invalidated due to deno run --cached-only being able to modify deno.lock and any already-cached deno-deps. We don't want to use --frozen, because this would return an error instead of an invalid signature. We don't want to compile because having many copies of deno would make our app much larger in size....

Pull/clone with deployctl

How can I pull or clone the code from the production deployment of my project? I used deployctl. Please tell me that's possible 😭 I lost all my code locally but the production deployment is there...

Need a little help with deno deploy for a newbie

Hi, How to pass my .env file on deploy and how to not have to authorize with github in the browser every time? this is an example of how I am trying it now with my typical auth failure response - the site deploys but the .env does not PS C:\Users\Brad\saaskit> deployctl deploy --env-file=.env...

Protocol Buffers

Heya, what's for anything using protobuf in Deno? For example in rust you just grab protoc, and then prost-build, and prost.

Error sending request too quick to npm

I'm trying to make create a mirror for about 2000 packages in npm. For each package, it fetches https://registry.npmjs.org/<package> and the downloads (https://api.npmjs.org/downloads/point/last-month/<package>) with Promise.all() But there is a few errors while fetching. ``` Error: connection error received: not a result of an error...

VSCode TypeScript version sync

Can VSCode/Cursor IDE detect TypeScript version from Deno?
No description

How to compile simple C++ file to use in deno via wasm

Hello Everyone! I am doing advent of code this year in deno just as a random choice. I wanted to get my hands dirty with wasm so I coded the day4 problem in c++ so I can then just call that function from Deno. The purpose of this is just to start learning some WASM build process . I have added the C++ code , please do not judge as I did this quick and not paying to much attention to best solution or coding guidelines 😄 ...

Support implicit package imports?

Hey, is there a way (currently, or in the near future) to make Deno support implicit package imports like the this one:
const createApp: typeof import('../../../node_modules/.deno/h3@1.13.0/node_modules/h3')['createApp']
const createApp: typeof import('../../../node_modules/.deno/h3@1.13.0/node_modules/h3')['createApp']
^ This is a part of the auto-generated .d.ts file by Nuxt....

Which logger do you use?

I've been exploring deno on one of my side projects. I'm quite in love with it! But I am struggling with finding a good logger library. Using pino gave me some errors and the @deno-library/logger ist far to light weight for my preference. Do you have any recommendations for some more log levels, remote logging would be great and also the ability to hook into the logger to write the logs to an additional output....

Current way to install -g a tool with deno add?

Hi all, Not sure if I missed this somewhere in the docs, but perhaps someone else has the same problem, so I’ll ask: suppose I have a script that uses something from @std, let’s say, {resolve} from @std/path. If I want to install a script do-thing.js and it contains import {resolve} from "@std/path" (this is after running $ deno add jsr:@std/path), do I have to do anything to install that as a utility?...

How do I troubleshoot this error?

I'm trying to run a fresh project I haven't touched in over a year. I ran the fresh updater but when I try to deno task start it, it gives me an error like this: ``` spencer@m1 ~/D/D/blog (main)> deno task start Task start deno run -A --watch=static/,routes/ dev.ts Watcher Process started....

Have a trouble using github hooks and deno

For some reason when I try to use deno lint --allow-import it throws this: error: unexpected argument '--allow-import' found I tried anything, but this just won't work, neither --allow-import nor -I, neither in the beggining deno -I lint nor in the end deno lint -I Maybe I have something wrongly configured? ```...

Cannot deploy properly to deno deploy

So I've just run a simple next js starter from the deno documentation and wanted to deploy it to deno deploy to see how this workflow is compared to vercel. However I'm getting permission denied and all sorts of other errors, any idea what went wrong? ``` PermissionDenied: 'Deno.exit' is not allowed in this context. at Object.exit (ext:deno_deploy/os.js:69:9)...

Zed code completion

Does anyone uses Zed with auto completion for Deno as in: https://zed.dev/docs/languages/deno My config: ``` "lsp": {...

Separate importmap file for static website

I have a folder in my Deno app for a static Website. The content could look like this: ```html // index.html <!DOCTYPE html>...
Next