Deno

D

Deno

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

Join

Executing module multiple times

I have a script that can be imported using await import() statement. what goes inside brackets is resolved using ModuleLoader. But even if i call await import() multiple times console.logs seem to be executed only on first run. Is there a way to have the module executed multiple times? I want to avoid having to define functions inside a script file

Queues in production not working

here's the main queue code , works locally ```ts import { getOneRepoPackageJson } from "./getOneRepoLibraries.ts"; import { getGithubViewer } from "./getViewer.ts"; import { Edge } from "./getViewerRepos.ts";...

Remote KV access error : Missing DENO_KV_ACCESS_TOKEN environment variable

i wen through the recomnded steps of adding a .env to the root of the project and adding
DENO_KV_ACCESS_TOKEN=ddp_an_access_token
DENO_KV_ACCESS_TOKEN=ddp_an_access_token
but it's still giving that env not found error...

Deno.serve() with SSL cert timeout

I have a very simple script that serves a /ping route. After some time (randomly) it stalls and no new request goes through. main.ts: ```ts...

List kv items using a partial key

Hey guys am trying to figure out kv and how to get stuffout of it how do i get iteme that have the key ["repo_pkgjson",reponame] example ```ts...

Is there a recommended library to do dependency injection in Deno?

I'm creating a Rest API with the repository and controllers pattern but my code in the main.ts file keeps getting bigger and bigger ```typescript // Repositories const animeFavoritesRepo = new MongoAnimeFavoritesRepository(mongoDatabase);...

React (CRA) deploy via deno

Getting an error while building react CRA via deno deploy. Error: ENOENT: no such file or directory, opendir '/home/runner/work/mrdcare-frontend/build I am also attaching a screenshot workflow file....

Custom executable icon for `deno compile`?

Is it possible to set a different icon rather than the default deno icon for the executable generated from deno compile?

Deno.Command output as it runs

Hello, I am trying to run a command and have its output be logged as it runs , but for some reason the command runs but no output is displayed. I tried using both ouput with await and outputSync, setting stdout to piped and inherit but nothing.

electrons using deno

In the recent deno version I see it is possible to runn executable in ./bin in node_modules using deno. Does that mean we can run eleclronjs desktop app in dev using deno ? By the way I don't see Desktop as tag in the tags suggested for help!...

Cannot find module

Hi vmathi I'm trying to run a project with Deno, but i'm getting "Cannot find module" with the npm prefix. The code is working correctly, simply the extension won't work correctly. Any idea how i could fix it please?
No description

Uncaught error during deno deploy of vite app

When creating a new vite app with vue and typescript I get this error message. This error is reproducable. Execute deno run --allow-read --allow-write --allow-env npm:create-vite-extra@latest Select typescript and vue & upload it to deno deploy. ...
No description

Deno, TypeScript, ESBuild, WebGL, VSCode

Hello! As the title suggests, I am using these technologies to create a web application: * Deno * TypeScript * ESBuild...

Possible issue with re-export compatibility with Node

In https://github.com/japa/runner/issues/35, I have described an issue where Deno seems to be incompatible with the Japa test runner (which uses a plugin-style design in which a TestContext class is augmented with additional properties via Object.defineProperty). It could have something to do with re-exports somehow working differently in Deno, an edge-case? If someone has time to take a quick look it would be amazing....

Make deno.serve handler asynchronous

How can i make the Deno.serve handler asynchronous? or like make it so that it can execute asynchronous functions...

Why my place.x -= 5 not working?

At this part if(moveKey.right.pressed) { finishPostion += 5 platforms.forEach((platform) => { platform.place.x -= 5...

quota exceeded

i hit the free limit tonight and upgraded to pro 20 minutes ago— when do my sites stop erroring with this code and go live again?

Deploying WASM via Deno Deploy Github Actions

Hello, I'm trying to deploy a Leptos project that serves a .wasm bundle for the frontend, and uses wasm on the backend as well. However, I seem to be running into a file size limit for Deno Deploy (or the Deno Deploy github action?). This is the error I'm getting:...

Get only the first records with deno kv but reversed ordered

I'm using Deno KV to store articles. Generating the ID for the articles: ``` export function generateUniqueChronologicallyOrderedId(): string {...

error: Uncaught (in promise) SyntaxError: Invalid regular expression flags

After Updating my fresh to latest version I got following error ``` deno task start Task start deno task run:trusted -- error: Uncaught (in promise) SyntaxError: Invalid regular expression flags...