Deno

D

Deno

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

Join

`deno cache` consistently failing with the same error

error: error sending request for url (https://deno.land/std@0.152.0/http/negotiation.ts): dispatch task is gone: runtime dropped the dispatch task It's not always the negotiation file, sometimes it's other dependencies also from deno.land/std that's running into the issue. Any clues on how to fix this?...

Does fetch() support upgrading the connection to a websocket?

What happens when fetch() gets the response ``` HTTP/1.1 101 Switching Protocols connection: upgrade...

Deno Deploy KV: Gateway Timeout

I been using KV on this project since closed beta and it worked great, but since yesterday Write OPs keep timing out. Read OPs work fine. I thought it might be that I went over the monthly quota but I checked more than once and it appears that I have some left....
No description

Slow loading time on localhost

As discussed in https://discord.com/channels/684898665143206084/991511118524715139/1193585623710310473, my simple app is loading slow, even at localhost. Here the page takes a whole minute to finish. What make an app load slow? How can I identify which process consume how much time?
No description

How to set env variable for preview branch?

I'm getting just errors that they are missing

Prisma error when trying to push/migrate db

```bash PS C:\Users\adubo\Desktop\freshchat> deno task push Task push deno run -A npm:prisma@latest db push Environment variables loaded from .env Prisma schema loaded from prisma\schema.prisma...

(In IntelliJ) Deno: Failed to load the import map at <absolute_path> (...)

I just started working with Deno today, and I'm liking it quite a bit so far 🙂 rn I'm running into the following problem with the Language Server though: On starting the LSP in IntelliJ, I get ``` Deno: Failed to load the import map at: <absolute/path/to/import_map.json>. Unsupported scheme "c" for module <that/same/absolute/path>. Supported schemes: [ "data", "blob", "file", "http", "https", ]...

serde_v8::from_v8 for BigInts unsupported through `deserialize_any`

Deserializing BigInts is currently not supported unless a specific type is requested (e.g. it's unsupported through deserialize_any path: https://github.com/denoland/deno_core/blob/main/serde_v8/de.rs#L131). This means that, for example, an object containing a field with a BigInt value cannot be deserialized. I assume this is because it's unclear which rust type to map it to? If so, are there any issues with the following mapping rules? - If the BigInt < 0 and within i64 bounds, then deserialize as i64 - If the BigInt >= 0 and within u64 bounds, then deserialize as u64...

import plotly.js : invalid or unexpected token ?

import Plotly from "npm:plotly.js-dist"; yields Stack trace: SyntaxError: Invalid or unexpected token at file:///Users/george/Library/Caches/deno/npm/registry.npmjs.org/plotly.js-dist/2.28.0/plotly.js:1091:14 ...

Deno deploy: "Error The deployment failed: ISOLATE_INTERNAL_FAILURE"

what's this error? ```js Cloning repository (100%) Project linked successfully. Building first deployment: Downloaded...

Module documentation preview in development

I am trying to improve development experience when documenting Deno modules. What I would like to achieve ideally is to have a real-time preview of a module documentation close to what is generated on deno.land/x so that I can make sure that the documentation for my modules is spot on. Is there a way to do that? I was experimenting with deno doc command, but it does not support watch mode. I guess that the easiest solution with the current tooling would be to run deno doc --html whenever a code changes, and serve the resulting html using some live-server that would check for changes as well. Not a great solution. Next, I was looking into https://github.com/denoland/docland and use the deno_doc package in combination with Fresh to get automatic refresh of the documentation. I was not able to make this work though since I am using some npm references and the deno_docis not able to load that using the default loader....

Fresh project creation hanging

Upgraded deno to 1.39.2 this morning and tried to create a new fresh project. CLI just hangs after entering project name:
No description

Redirect which deno deploy instance is used?

My scenario is that I have one websocket connection on east4 and one on east5 and they need to be able to talk to each other. I did set up an in memory cache with broadcast channel but the data was too big for it to handle and it’s too big for deno kv. (It’s chunks of audio) Locally everything works ok as it’s all using the same server so I’m wondering if there is a way when establishing a connection I can override or re-direct which gcp deno deploy instance will be chosen?

std/http/setCookie doesn't work?

It seems to only support single cookies: ```ts import * as cookies from "https://deno.land/std@0.211.0/http/cookie.ts" var h = new Headers()...

Abort signals and node compatibility

Deno and Node's AbortSignal types are not compatible. I have verified that I can use a deno AbortSignal with the node:events APIs (at least EventEmitter.once(), but I have to cast them to Node's own type if I want to get rid of errors: ```ts export { EventEmitter } from 'node:events' export type { AbortSignal as NodeAbortSignal } from 'npm:@types/node'...
No description

deployctl error: TypeError: request or response body error

Hey, I'm getting an error when trying to deploy to a project error: TypeError: request or response body error: error reading a body from connection: stream error received: unexpected internal error encountered It stucks on â ´ Deploying... (100.0%) and after sometime it throw the error I mentioned above ...

drizzle orm for deno and sqlite?

does drizzle orm work with sqlite and deno?