Deno

D

Deno

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

Join

`deno bundle` and React Router

Is bundle intended to fully cover projects would normally require third party build tools? Asking primarily because I ran into a snag trying to migrate a React project off of Vite -- that snag appearsto involve React Router -- which, itself, uses Vite as a dev dependency. (Tangentially, if I keep using Vite, its syntax parsing throws errors on attempting to use text imports)...

Is anyone else having persistent 502 errors from deploy.deploy?

My app is unusable. Constant and persist 502 errors from an app serving static assets.

Cant install deno on Windows.

When i try to install deno on Windows, i get this error: I think the issue could be that my Path is too long but I am not sure....
No description

Hono RPC types stop working in 2.4.2

I noticed that upon updating to Deno 2.4.2 the hono RPC types stopped working. I noticed that there were some tsconfig default changes in the update, do I need to manually fix one of them?
No description

deno deployed app not reporting to hosted collector

Hello team and community! My Deno Deploy app isn't sending any OpenTelemetry data to a hosted collector. It works great locally with my LGTM (Docker setup) – I get all the traces and logs there, so I know my code and OTel config are good....

`@jsxRuntime` pragma

The TSConfig reference claims that adding a /* @jsxRuntime automatic */ comment to a file has the same effect as setting compilerOptions.jsx to "react-jsx" for that file, but this doesn't seem to be the case. I have a main.tsx file with the following content. ```ts /* @jsxRuntime automatic / / @jsxImportSource npm:hastscript@9.0.1 */ console.log(<></>);...

Imports in Deno2 + Sveltekit

Hello, Does anyone have any advice on how to connect to redis in Deno and Sveltekit? I seem to be getting [vite] (ssr) Error when evaluating SSR module with whatever I try. My issue seems similar to https://discord.com/channels/684898665143206084/1311242710887432202 Thanks!...

Issue with Oak, Superdeno / Superagent after going from Deno 2.3 to 2.4

Hi, I've been using Oak + Superdeno (Superagent) with relatively ok DX so far. Recently after upgrading from Deno 2.3 to 2.4, all my tests failed because of this: ``` error: Error: Request has been terminated Possible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc. at Test.Request.crossDomainError (https://jspm.dev/npm:superagent@6.1.0!cjs:674:13)...

Is there a way to view active resources keeping the Deno event loop open?

I'm trying to debug a Deno process mysteriously staying alive when it should close. Is there an equivalent of the getActiveResourcesInfo API from node? When I try to do import { getActiveResourcesInfo } from 'node:process'; in Deno I get the error Uncaught SyntaxError: The requested module 'node:process' does not provide an export named 'getActiveResourcesInfo' so it looks like this particular API is unimplemented in Deno. I've also tried looking around in the inspector using `deno run --ins...

starting web development

guys help out me to start my journey in web development ,,suggestions where to start from

React Library Best Practises

Hi, I'm trying to migrate our app-sdk and app-sdk-react from Node to Deno. The app-sdk went fine without issues and is able to be imported and uesd across Deno and Node/npm worlds without issue. But I'm having issues with React. I don't have react in my dependancies as I use Denos built in support. My compiler options are; ``` "compilerOptions": {...

Deno compile is broken for me

Not sure if I broke my install of Deno or what but deno compile results in: ``` error: Writing deno compile executable to temporary file 'build/linux/chronver.tmp-aa3bc710d3e7d9b6' Caused by:...

“TypeError: Illegal constructor” error when using FormData

I'm currently experimenting with the Deno test runner and have set up a simple test. Or at least, I thought I had! When running the test I get the following error:...

multiple connections to local kv with sqlite from different thread

If I have multiple workers on different thread, occasionally accessing the same kv with sqlite backup, will that cause any problem other than occasionally db being locked (which I can just try again) I'm building a compiled local app so shared kv instance on Deno Deploy is not an option....

Question

So i am using a GitHub repository to link it to deno deploy. Just a quick question-is node.js compatible with deno deploy?

Does `deno bundle` have a TypeScript API?

I'm excited to use the new Deno bundler. In my past experience with esbuild, I've almost always needed more config than a shell one-liner and frequently plugins. Is there a TypeScript API exposed? I tried inspecting the Deno global, looking at the docs, and searching for a package on denoland but didn't see anything.

Deno + Tauri, deploy and make app usable on my device forever

Is it possible for me to make my tauri app available on my phone (iOS) all the time. Basically, I want to download the app I made onto my phone, and make it available even if I didn't run deno task tauri ios dev on my laptop and didn't have to keep my phone connected to the internet to use it. Not sure if I should be asking here or in the tauri server (I am asking in both), but just curious if it was possible. Currently I can test it both on simulators and my device, but I want to keep it on m...

how to deploy deno in turborepo on Deno EA?

I created a monorepo(https://github.com/waptik/veth/tree/main) with turborepo and it works well on my machine. I tried deploying the deno app in apps/hono on deno-ea and set entrypoint to apps/hono/src/index.ts and set install command to pnpm install but it's failing...
No description

Deno compile with @types/node (Buffer) issue

Hi, I am trying to get Deno to compile my node.js project and I am hitting the wall with typechecking (I know about --no-check, I just want to resolve this) Error: TS2580 [ERROR]: Cannot find name 'Buffer'. return { out: Buffer.from(out).toString('hex'), result };...

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....