Deno

D

Deno

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

Join

Has anyone set up Deno's LSP on WASM with monaco?

I want to create a web-only monaco editor for Deno scripts, is it possible to run it on WASM and connect to monaco language server plugin?

Running Angular SSR on Deno Deploy

I have an Angular application with SSR, and when I run it locally with Deno, it runs without any problem, but I don't know how to host my application in Deno Deploy. To run Angular with SSR with Deno, I would have to do deno task serve:ssr:<name>...

Serial port reading and writing

How would one read and write to a serial port in Deno?

How to set up VS Code with Deno workspaces

I'm trying workspaces, introduced since Deno 1.45. It works well with the deno CLI, but in VS Code, red underlines show up on import statements. (I guess this issue is relevant?) Is it a bug of Deno's LSP or my mistake? Is there any best practice to set up VS Code with Deno workspaces?

Angular on Deno

Hello everyone! Got a problem with Deno and would like to ask for your advice. I'm trying to serve a new default angular project but get it being built infinitely. The command is basically: ng serve...

Importing deno modules with import maps

Hi, I am currently trying to import a deno library either locally or via url. The library contains a deno.json file containing an import map for jar packages. I have tried importing the mod.ts file (which thows an error complaining about local imports (no import map to resolve them)....

has there been a regression in 1.44.3 in deno ffi?

the smallest repro i could make: https://gist.github.com/teidesu/199abcd47a3fb494564a2c41965be5ad on linux amd64 host, put these 2 files in the same directory, and run docker run --rm $(docker build -q .)...

TypeError: fileHandle.stat is not a function means Deno is not compatible with the package?

I was trying to use twitter-api-v2 npm package and upload media to the tweet but couldn't

Private NPM Registry config with $HOME/.npmrc and project/.npmrc

I'm trying to introduce Deno into my company that use Azure Npm Registry Something missing with the config below. (That the configuration that work with NPM) My configuration ...

Mono Repo - Enable Paths

I tried to follow the guide below to use enable paths but VSCode keeps giving the following error Cannot find name 'Deno'.ts(2304) Any help please? https://docs-qx6wony0a-supabase.vercel.app/docs/guides/functions/local-development...
No description

How can I execute DOM-reliant javascript in deno_core?

I just want to execute some javascript in the background of my rust app, but I need a virtual dom to use some modules. I'm brand new to deno/rust, so apologies if I'm missing something obvious. But I don't understand if what I'm trying to do is even possible lol. I'm trying to get linkedom to work with deno_core, but I get the error
error: ReferenceError: window is not defined
at https://esm.sh/v135/node_perf_hooks.js:1:109
error: ReferenceError: window is not defined
at https://esm.sh/v135/node_perf_hooks.js:1:109
...

Transfer-Encoding: chunked

Alas, my question about "Transfer-Encoding: chunked" on SO did not go anywhere. Any advice on the matter from great minds here? https://stackoverflow.com/questions/78720322/why-i-see-chunk-sizes-as-text-in-browser-when-streaming-http-with-transfer-enco...

Is there a way to use a custom wgpu build with Deno?

Hi! I'm new to Deno (and Rust) and I couldn't find much about this online - sorry if this might be a basic question. I'm doing a uni project to fuzz test different WebGPU API implementations. I'm randomly generating WebGPU API calls and then passing them to a WebGPU implementation compiled with sanitizers (such as address-sanitizer), then seeing if any memory violations occur. I've done this with Google's Dawn (https://dawn.googlesource.com/dawn/+/refs/heads/chromium/4959/src/dawn/node/) and No...

Create an array with all possible combinations from a to z

@Deno AI Helper what is the best way to create an array of all possible combinations from a to z in order of a, b, c...x, y, z, aa, ab, ac...zzzzzzzzzzzzzzzzzzzzzzzzzx, zzzzzzzzzzzzzzzzzzzzzzzzzy, zzzzzzzzzzzzzzzzzzzzzzzzzz?

Is there a way to limit a slider knob to a range?

So Im creating a slider which im limiting to 50. how do i ensure that the knob even when dragged with the mouse won't exceed the value? Thanks in advance!:)
No description

Is dynamic import a slow type?

Is the dynamic import the reason, why my package can't reach the 100% score on jsr.io?
No description

Is there a way to use Javascript as easily as Php?

Sorry for the vague title. I don’t know how else to say it. In Php, you can make a simple file that looks like this
<?php echo "Hello"; ?>
<?php echo "Hello"; ?>
When a user requests that file, it automatically executes the Php code and sends them the result, using https. Easy...

Issues importing FullCalendar

Hi, I'm fairly new to Fresh/React/Preact. I'm trying to import FullCalendar into my project. This is my implementation: ```tsx import "@fullcalendar/core"; import FullCalendar from "@fullcalendar/react";...

Drizzle

I tried using drizzle to connect with supabase for edge function but I was constantly getting a connection timed out error. Apparently it seems to work well on other runtimes . Is this any internal issue with the package or am I doing it wrong . If some one whose been recently working on it help me out with this

Convert Sub hosting user code to commands

Hi ! I'm new on Deno. I built my project on Node.js, but it seems that Deno is more appropriate for what I want to do. I'm looking for a way to safely run user scripts to feed a command pattern on top. The idea is to do something similar to an online Robocode. ...