Deno

D

Deno

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

Join

Bundle without export

Is it possible to have the output not having export... line?

LSP badly resolves relative imports between cached modules

I don't really understand this, but it looks to me like the LSP / VS Code has started resolving relative imports between cached modules badly. I'm running under a devcontainer, with the project root in /workspace/ and $DENO_DIR is /deno/.cache/deno . I can run my unit tests from a terminal ok, but if I try to run them in VS Code I get a "Module Not Found" error popup that shows an attempt to import a module from /workspace/deno/.cache/deno/.... If I open the (cached) module containing the failing import and hover the import statement I see a popup with the "Resolved Dependency" in the wrong place, outside the cache. Screenshots attached....

Reason for "Following modules were not evaluated"

What is the reason for "Following modules were not evaluated; make sure they are imported from other code". As far as I can tell it requires me to add esm_entry_point if my deno extension has esm files. Why cant I add esm and use it later in side module and not in entry point? or am I missing something?

discordav.deno.dev not working now

Im using discordav.deno.dev for get the discord profile picture from id. It was working yesterday but today its not working.

KV: What to return from here?

```TS // Create City router.post('/cities', async (context) => { const data = await context.request.body().value if (data.slug && data.name) {...

Log Deno.command process output

i need to execute a command wich will keep running until stopped and log the output. i found this but it dosnt work ```ts const command = new Deno.Command( "java",...

Uncaught TypeError: Cannot set properties of null (setting 'innerHTML')

Code: var bcb = new WebSocket('wss://stream.binance.com:9443/ws/bnbusdt@trade'); bcb.onmessage = (event) => {...

It's hard to read that the font used in the official Deno website.

On the official Deno website (deno.land), I think it difficult to distinguish between upper and lower case letters regarding the fonts used in code blocks and code fragments, where can I give feedback on this?

Petition to free the module x/type from deno.land

Here is the module url: https://deno.land/x/type It says it would be deleted after 30 days but has nothing published to it. Can it be freed?...

Docs on understanding how Fresh works under the hood.

I want to start becoming a contributor for Fresh, I have been looking at PRs and reading documents while developing but still feel lost in trying to understand the concept behind how this works. Is there a good way to start understanding this ?...

Node MongoDB Driver on Deno dropping connection and crashing process

Heya folks. I am encountering the most recent error described in this thread https://github.com/denoland/deno/issues/16633 According to https://github.com/denoland/deno/issues/19078#issuecomment-1542955089 , I might be encountering the same problem as https://github.com/denoland/rusty_v8/issues/1226 (though I don't anything confirming that, just going off the comment) I created a minimal reproduction repo here: https://github.com/TillaTheHun0/deno-mongo-atlas-repro...

How to solve "cannot be invoked without 'new'" thrown from an NPM module ?

Hello, An NPM module (which I don't own) uses call on something, which throws a cannot be invoked without 'new' error. How can I solve this ?...

Coverage with subprocess

One of my tests involves spawning a subprocess. Is there any way to get this subprocess to participate in the overall code coverage runs? By default it seems to not be included. I mean that lines executed by the subprocess don't get logged.

How to exclude folder from deno lint

I use WebStorm. How to exclude specific folder from deno lint? Is it possible in WebStorm? It is possible in VSC. I am sure the config file (deno.jsonc) is read properly.

TypeScript compiler type declarations

I'm using import ts from "npm:typescript" to work with the TypeScript compiler, but how do I get type information?

[ignore] configuring bot

Nothing to see here, ignore for now 🙂

Signal Arrays do not work with HTML-Elements?

I tried to debug my problem for a while until I realized that this works: ```tsx import { useSignal } from "@preact/signals"; export default function Island() {...

Reuse Deno.serve for other TCP connections

Hello, As a newcommer to Deno, I wrote a client for NNTP protocol (https://github.com/sntran/deno_nntp) following the specs. In the process, I did all the reading the connection, parsing for status code and text, headers and body. As I get more acquainted with Deno, I realize that I basically re-implemented what Deno HTTP API is, of course, in a much less efficient way....

deno coverage crash

I run
deno test -A --coverage=tmp/coverageData src
deno test -A --coverage=tmp/coverageData src
then...