Deno

D

Deno

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

Join

Getting BOOT_FAILURE with Deno Deploy (using deployctl) when trying to deploy SSH Server Ink App

I know this is kinda niche, but I'm hoping someone can help me out here as I am stumped. I am working on an SSH server portfolio app using npm:ssh2 and npm:inkjs. I thought it would be neat to serve this using Deno Deploy, but I keep getting this error: ```sh i Using config file 'sshportfolio-deno/deno.json' ‼ No project name or ID provided with either the --project arg or a config file....

Is it possible to check the request comes from deno subhosting?

Recnently we are planing to use deno subhosting to connect to database. We need to protect the database connections only comes from deno but I didn't found the way to do that, does anyone knows how to do?

How to get origin URL on Deno Deploy?

What's the right way to get the origin URL https://user-repo.deno.dev in a Deno Deploy worker? I could hardcode it, but would need to keep it in sync with a custom domain, etc. It seems globalThis.location isn't set on Deploy!?...

Does anyone use Deno Subhosting?

Hi, we are new to deno and we lare thinking about using deno subhosting to serve our customer's needs for edge function. Has anyone used it and is it stable? looks like there's no subhosting channel here...

Is there a way to set the globalThis.location for a Worker

In the same way that --location can be used to set the location on the main thread, is there a way to override the location that gets set on a Worker? We are using Workers to run untrusted user code, and it'd be more desirable to set the location to something other than the URL of the worker module itself....

i have an external network card how to find my deno project externaly

soo my computer was used by an company soo it has an firewall im trying to access my local project on and different device how to do this

I lost my questions.deno.com account.

Hello, i have deleted my old discord account 1y ago, and i lost access to the forum. I still have access to the email i used on my old discord account and since questions.deno.com save discord account's email i can use it to proof ownership. Is it possible to get my access back or to delete my account/data ?...

Deno LSP not narrowing types

I've got a project set up with vite and everything is working well but I'm getting the following error both in my editor and on build. Is there some tsconfig setting that I'm missing that's preventing it from narrowing it to the correct type? This is my current config: ```ts...
No description

OTEL not exporting to external server

Hey team, I've been reading docs and trying different configurations. But I can't seem to get my local OTEL logs and traces on my remote LGTM stack. The project is fairly simple, it's a Deno Fresh (1) setup. With some API endpoints which I want to see the logs for. Using Deno 2.4.1...

How do I propagate OTEL context into a Worker?

First, should I expect that the context is propagated via postMessage to Workers automatically? I assumed not, so I've tried using propagation.inject/extract with a plain object as the carrier to pass the context in the message of postMessage. It appears that the carrier doesn't contain any data, when using Deno's native OTEL....

How can I replace vite with `deno bundle`?

I've got a web app (currently a SPA) that uses vite in a pnpm workspace. The backend is in a deno workspace in a separate repo. I'd love to get 100% on Deno. What's the best path for me to migrate to deno bundle and still get live reload and all that jazz?

Issues with Vite SSR and workspace imports in Deno — Need guidance on deno-vite-plugin usage

Hi everyone! šŸ‘‹ I'm currently working with Deno (2.3.7) + Vite (v6.3.5) and running into some issues that I hope you can help me with. Current Setup...

Best practice for passing Array of Objects from C++ to TS using FFI

Hey, what is the best way to pass an array of objects from C++ via DLL to TS? We are trying to write a Serial Library and we query a list of available ports and their information. Similar to the serialport.io node library. What would be the best way to pass all the available ports and their information to TS?...

Workaround for deno with otel not exiting?

https://github.com/denoland/deno/issues/29590 I kinda want to use otel but if i cant exit the application it won't be of much use...

dist folder causes issues with React version

I had an issue where this error kept cropping up. ``` react.development.js:496 Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: 1. You might have mismatching versions of React and the renderer (such as React DOM)...