Deno

D

Deno

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

Join

Bunle OAK static assets to the compiled binary

Hi, I am currently switching from NodeJS to Deno, and so far so good! One of the reasons for this switch is how easily i can compile everyting up in one executable, which is important for my use case. However, I'm not familiar with OAK and how it integrates, as i come from Express. I have the current code, which runs fine on the CLI, but doesn't serve the assets once compiled: ```js...

The requested module does not provide an export named 'default'

I'm trying to export the following interface: ```import User from '../models/User.ts'; export default interface AuthRepository { signUp(uer: User): Promise<void>;...

I want to contribute to deno without disturbing my libs in linux . Is there a way?

Noob alert I have been trying to contribute to deno . So i followed these instructions https://deno.land/manual@v1.36.4/references/contributing/building_from_source and dowloaded the git repo Now , i don't wanna install dependency globally on my system . So i ended up using dev containers but when i try to build it , it gives the following error: ```...

Timezones in Dates?

Hi everyone, what's the right way to create a Date with a specific timezone?

Resolving Class constructor error

Hello, I am currently trying to port a small test api from NodeJS to Deno. This code uses only NPM packages and is a direct copy past from the previous project besides the "npm:" addition to packages. Currently when running the code, there are no errors on compile, only during run time when trying to create the postgress client, which seems to come from the postgress library. I have not been succesful in finding a solution either here in discord or online. Only semi relevant would be changing the compile target which I also tried but got the following error ```Unsupported compiler options in "file:///C:/Users/Abnormal/Documents/Projects/Web/notesapp/denoback/deno.json"....

KV list is returning an empty iterator, but data is there and gettable via get

Hello. To simplify things, I am setting a key of ["accounts", account.name] but when I try to get the accounts with kv.list({ prefix: ["accounts"] }), I always get an empty iterator back. I am able to see the record exist when using kv.get(). Here are the relevant snippets; what am I doing wrong, or is this a bug?: ```ts...

Read permission & NPM imports

Hello, I'm using --allow-read=. to allow a script to read files in the current directory. The script also use NPM imports, because of which it also asks to read /home/{username}/.cache/deno. Can I not need to explicitly allow this path, especially since it will differ depending on operating systems and installation modes ? Thanks...

WebSocket connections killing setInterval()

Hey Deno friends, it appears that websocket connections are somehow stopping the execution of setInterval(). I filed an issue about this here, two months ago: https://github.com/denoland/deno/issues/19707 Should I expect to get a resolution on this? Thanks!...

jsx in js

All of my files containing JSX are in .js files. Is there an easy fix for this when running?

http error

I need help because I have a service that has more than 1 million requests per day and for about 7 days it has been giving a timeout. I understand that 5M are free but the rest would be paid, but the service is not holding up, what can we do?...
No description

does Deno vscode support nesting `deno.json`?

There is a project I'm working on has nesting deno.json files. The parent deno.json is a bit outdated and the child is what I need to work with. However, Deno plugin of vscode doesn't recognize the closet deno.json to the current file I work on. I tried to enable Deno Enable Paths but it didn't work as expect. Is there anyway to solve this problem?...

Deploy says Worker not defined for ESBuild (wasm.js)

@Deno AI Helper I am having trouble understanding how to get the esbuilder to work on Deno Deploy, using write: false here is what my conifg looks like currently ```ts const result = await esbuild.build({...

deno_tui Label-class

Hello. I just started testing around with deno_tui and found the DrawObject-Class. How do i actually use this class? Afaik there is no proper documentation to deno_tui at all and especially not for this class specifically....

Cannot read file "src/deno.json": not implemented on js

Hey @Deno AI Helper ! I'm having a bit of trouble, I'm trying to use deno.land/x/import to use non statycalize analyze dynamic import, but I get errors when trying to load events for my Client class ``` Error: Build failed with 2 errors: error: Cannot read file "src/deno.json": not implemented on js error: Cannot read file "src/deno.json": not implemented on js...

Error running Apollo example (on latest version)

Hi. When I run this example with the latest version of apollo from npm I get errors: https://deno.land/manual@v1.36.4/node/how_to_with_npm/apollo...

Example Question for the Deno AI Bot

Hey there - this is an example question for the Deno AI bot. How would I write a regular expression that searches a string for all occurrences of the word "Deno"?

Does Deno support `export type` statements?

Hello, we are using Deno + TS and I am getting the following error if I try to export a type from another file:
Uncaught SyntaxError: Unexpected token 'export'
Uncaught SyntaxError: Unexpected token 'export'
...

How can one patch a Deno dependency?

Hello, We're used to working with node and using patch-package to override and fix packages fairly easily. However, we're now using Deno due to using Supabase edge functions and have not figure a way to get the same dev experience. Is there any guide or way one can patch a dependency in Deno?...

Can't "Sign in" to deno deploy

Hi There, I can't sign in to deno deploy. The first time I try it works, and it sets up the GitHub App ok, and everything looks right in GitHub, but when I click "Sign In" on the deno deploy website I see this message, which means I can't "Add Project" ``` { "code": "githubAccountBlocked",...