Deno

D

Deno

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

Join

Deno compile with --include

Hi, playing around with deno compile --include following the docs probably doing something wrong but not sure what. Help appreciated, using v2.5.3. I have the following names.tsv ```tsv John Doe...

Playwright error requires Node.js v18.19 or higher

I'm attempting to run Playwright, within the context of Deno, but for some reason I receive this playwright error that Node.JS is required to load ESM modules. I am using Deno 2.5.3, and running playwright.config.mts file from the root level with deno run playwright test I do have Node 20, 22, and 24 installed, and I tested with Node 20 and 24 and received the same error.

Has the v8.getHeapSnapshot function been implemented?

When I try to use this function, I get the following error: ``` error: Error: Not implemented: v8.getHeapSnapshot at notImplemented (ext:deno_node/_utils.ts:9:9)...

Help use enviroment variable for both Deno and SvelteKit

Changed post since I solved the original issue. Now I'm having a very annoying issue with trying to use an enviroment variable that works for both Deno and SveltKit....

Problem with Deno's compile

I have updated to deno 2.5.3 yesterday (stable release, aarch64-apple-darwin) and, since then, I have problems with deno compile even when I use it on a one-liner typescript file (i.e., console.log('Hello world'). At first, I got a load of warnings about symbolic links that were wrong (no target). I took care of those but, nevertheless, the deno process did not finish even after several minutes; I had to kill it manually. What was strange is that the symbolic links referred to files and directories that had absolutely nothing to do with the oneliner ts file, or even with deno in general. (Old projects still around on my disc, whether in typescript or not.) I attempted to run it in the background and what I seemed to understand is that the process was doing file i/o all over the place. As if it was scanning my disk....

Help on deploy-ea

Hello, anyone on #deploy™-ea ?

error: Uncaught TypeError: Cannot set properties of undefined (setting 'target')

Hey, I get this whilst starting my app with Deno: ```sh error: Uncaught TypeError: Cannot set properties of undefined (setting 'target') at setTarget (ext:deno_web/02_event.js:97:29) at dispatchEvent (ext:deno_web/02_event.js:1055:7)...

[Fresh 2] Deploy Classic fails with ISOLATE_INTERNAL_FAILURE 100%

After upgrading to Fresh 2, deploying to my existing Deno Classic project results in 100% failure with ISOLATE_INTERNAL_FAILURE. More Context: 1. vite is able run the dev server without issue. 2. vite build succeed....
No description

"Complicated" dynamic import and deno bundle for the browser ..

I recently updated from 2.4 to 2.5, specifically for the new html entrypoint feature for the bundle command. Before upgrading, bundling ts/css to browser-ready output works fine. After upgrading, not only am I seeing several thousand chunks from bundled output, but also new errors in the browser console regarding missing .js files. Some diagnostic work shows the problem package to be browser-fs-access, which is a dependency of one of my direct dependencies, and the problem code to be dynamic imports, as in the following:...

How do I know if deploy EA is fine?

I have failing builds after 8 mins but no logs to check why. Please help.

[Fresh 2] How to a add tailwind plugins?

Looks like Fresh no longer recognizes my tailwind.config.ts since 2.0, how do I add tailwind plugins such as typography and aspect-ratio?

[Fresh 2] tailwind-plugin does not recognize @apply utility classes

I am migrating from Fresh 1 to Fresh 2. Simply moving my stylesheet from ./static/styles.css to ./assets/style.css and importing it in client.ts crashes the vite dev server with the following excerpt. `` [vite] (client) Pre-transform error: Cannot apply unknown utility class text-gray-800. Are you using CSS modules or similar and missing @reference`? https://tailwindcss.com/docs/functions-and-directives#reference-directive Plugin: @tailwindcss/vite:generate:serve File: ./assets/styles.css...

[Fresh 2] How to reference DOM types in Islands?

I have a simply click-to-copy button in my islands, but navigator.clipboard fails deno check because it's only referencing Deno's runtime API where clipboard features are not implemented. Is it possible to configure the project in a way that only islands/**/*.tsx includes the DOM API in compilerOptions.lib?...

Deno TS configuration

Good day. I am new to Deno and trying to get type checking working correctly in my TypeScript project. It seems that my autocomplete is able to infer the correct types but Deno is not highlighting errors like assigning variables with the incorrect types (username should also be type string not string | undefined) although it does pick up unused variables. To me it seems as if strict mode may not be enabled even though I have it specified in my deno.json. Using PhpStorm with Deno LSP and lsp config attached. Thank you for the help 🙂...
No description

Deno can't install this npm package "npm:@scaleway/sdk@2.76.8"

When I try running: ```ts ❯ deno add "npm:@scaleway/sdk@2.76.8" error: npm:@scaleway/sdk was not found....

Deno.serve vs serve (from @std/http/server.ts)

This is probably a newbie question, but why does deployment end with an error during the warm-up step when using serve from the standard library? As far as I understand, this happens due to a timeout because the server is listening on port 8000. But then why does Deno.serve deploy without any problems? Does this mean that they have different way of starting the server? If someone could explain this in detail, I would be very appreciated.
No description

Is there something similar to @nx/dependency-checks?

I'd like to enforce certain dependency constraint between modules. Is there something similar to @nx/dependency-checks or a way to accomplish the result I am after?

how to properly type preact/compat?

i've read https://github.com/preactjs/preact/discussions/4252 but ```json "imports": { "react": "npm:preact@^10.26.2/compat",...
No description

[Fresh] Docker build issue in CI after upgrading from v1 to v2

Alright, so I've been upgrading Fresh from v1 to v2 in bewCloud (https://bewcloud.com) for a while, and gave up a couple of times, but finally got everything working. It also builds in Docker locally without issues and everything seems to be fine. I really dislike the use of vite but couldn't get around it, unfortunately. Builds and tests got slower, but I guess that's the price for getting some progress. The app itself seems to have suffered no big problem. But I digress; the main issue I'm currently having, which is preventing a new release, is the fact that it fails to build a docker image in CI. It fails with a really weird error, about the deno.lock file:...