Deno

D

Deno

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

Join

hey, I'm trying to use npm:express-openid-connect@^2.17.1. However, when I try to:

import { auth, ConfigParams, requiresAuth } from "express-openid-connect"; I get the error: error: Uncaught SyntaxError: The requested module 'express-openid-connect' does not provide an export named 'requiresAuth' I think this is because of the way this is exported by the library:...

How to get problems solved

Hi all, I would like to know where is the best place to ask for help (and get answers) for someone who wants to move stuff from node to deno? Is it here in this channel or should I better try in one of the project-channels? ...

How to use a private Deno module hosted in a private repository?

Hello, I am trying to publish and use a private Deno module from one repository to another. The repositories are hosted on Azure DevOps. Following the docs and other online resources, there are 2 main ways to do that: - Publish a npm package with dnt on the Azure DevOps npm private registry, - Use the raw file directly from the other repo using DENO_AUTH_TOKENS env variable for authentication....

Why everything is marked as deprecated in API documentration ? And what are the altenratives ?

I would like to make a TCP connection with Deno with a timeout but everything I found is marked as deprecated: https://docs.deno.com/api/deno/~/Deno.connect https://docs.deno.com/api/web/~/setTimeout So what is the proper way to do that ?...

How to load DWARF debugging symbols from WASM modules when running `deno --inspect`

I'm trying to step through some WASM code that I've imported as a module with the debugger when using deno --inspect. While this does work with the raw WASM, it does not actually display any of the debug symbols that are included when you compile with -g I've set up a project to demonstrate the issue: https://github.com/cowboyd/deno-wasm-debug I'm not sure exactly why this is not working in Deno, but it could very well be that it is not loading the custom devtools extension that is require to load the debug symbols....

403: Forbidden on Deno /JSR Website

Hi All the web services from Deno are responding with 403 status code, i am visiting the websites from "iran" so i guess this is a Geo Restriction Policy. i was wondering if this is intentional or maintainers are not aware of this...

In Deno 2.1.7 I stumbled on Deno.Stdin, Deno.FsFile but using these types fails to pass check

I can "run" the following code it doesn't pass check or compile. What is the right way to approach this? (file is named foo.ts). ```async function main () { let input: Stdin | FsFile;...

Removing file extensions on import

Is there a deno.json configuration to make so that the file extensions are not needed when importing stuff? Deno should have enough context when importing files (unless they have the same name), so it makes sense to me...

Why deno.exec is much larger than bun.exec

Deno executable is around 135mb in GNU/Linux whereas Bun's is much smaller, why is that, in fact when we look at the features both of them support, we can see that Bun is featureful too and when we look at the LoC (Lines of Code) for each project we will see this:
No description

Uncaught (in promise) TypeError: Reflect.getMetadata is not a function

Hi all, I'm trying to use dtos like I'm used to in nodejs. I have the following imports ...

ORM Library for PostgreSQL

Hi, I was wondering what is a good ORM library for an Express/Deno project?

QUIC QuicReceiveStream read() panics when peer disconnects

Deno panics when I'm waiting for a stream after the peer has disconnected. The panic cannot be caught with a try/catch. Code: ```js...

jsts with deno

I am struggling how to use the jsts npm module with deno. Has someone managed to set it up correctly? ```...

Prettier plugin support with deno fmt

Hi, is there any way how to achieve this using deno fmt? Work around here is to chain deno fmt with prettier execution (which handles only the plugin action), but that's a bit awkward. https://tailwindcss.com/blog/automatic-class-sorting-with-prettier...

threejs, typescript and vite => everything threejs is any

Hi all, I am coding a dead simple threejs experience where I hoped to be able to use typescript. But all that's imported from the three import is considered as any and there is no way to navigate to the source definition :/ ...

How to extend `serde_v8` to handle custom logic?

Hi guys! I'm currently I have the following struct to represent my Tensor object: ```rust // Type alias for TensorElementType (External lib proxy) // https://serde.rs/remote-derive.html #[derive(Debug, Serialize, Deserialize)]...

Deno 2.0 Bad resource ID after discord.js joinVoiceChannel

Hi, Seemingly out of nowhere, my deno 2.0 discord.js bot is throwing a crashing Bad resource ID error that seems uncatchable. The error seems to occur after joinVoiceChannel is executed and returned. It has previously been working with no issue for the last two days, and I've attempted to revert all changes, and the issue seems to persist. Any tips to resolve this would be great....

Vscode deno error with library not navigable

Trying to navigate from vscode console to the code shown in a stacktrace with line and column. If i call the same method in my code (and have also the import) the navigation works perfectly (so http import maps are properly configured). Am i missing something? Is it possible? ...
No description

Issue with deno workspace docs

Hey for deno workspaces name is expected to be in the tasks? or should it be a the top level in the deno.json?
No description

Deno support for Expo

I'm working on a project that is using Expo with React Native. Can Deno and Expo live in harmony in the same project?