1,112 questions
-1
votes
0
answers
55
views
Dynamic tests and debugging [closed]
How do I get the debugger to descend into my arrow function when debugging tests via:
Deno.test(name, () => ...)
I'm using VS Code with a launch.json file.
I can successfully debug my deno tests ...
0
votes
0
answers
45
views
Run flamebearer (Node tool) for profiling
I'm using Deno in a classroom setting and am quite happy with it. For a lesson on performance, I'd like to use a profiling tool.
The flamebearer npm package looks quite promising:
npm install -g ...
0
votes
0
answers
55
views
Chainlink Functions: Spotify API returns 400 Bad Request (x-www-form-urlencoded issue in Deno sandbox)
I am developing a Chainlink Functions (v0.3.x) request to fetch artist data from the Spotify API. I am simulating the request locally using the Chainlink Functions Toolkit (simulateScript), which runs ...
1
vote
1
answer
79
views
Does TypeScript allow default parameter values in returned functions?
Consider the following code:
type TParser = (str: string, errStr: string) => number;
function LIT(str: string): TParser {
return function (input: string, errStr="An error occurred"): ...
2
votes
1
answer
231
views
Tailwind CSS v4 Vite plugin through npm:vite Can't resolve 'tailwindcss' error
I have trouble on implementing TailwindCSS v4 on Deno. This is my structure:
deno.json
{
"tasks": {
"dev": "deno run -A --watch main.ts",
"vite": &...
2
votes
1
answer
100
views
How can I capture the output of a subprocess (deno) called from a bash script when run by CRON?
I have a bash script that turns off stdout and stderr when not run interactively (i.e. run from CRON).
if [[ ! -t 0 && ! -t 1 ]]; then
#echo "The script is not called ...
0
votes
0
answers
59
views
Recursively clone git repo in "prepare" step of Deno Deploy
I'm using Deno Deploy (console) to build a git repository which depends on a git submodule. I can see from the "Prepare" step that it is not cloning the submodule. I've tried to put the ...
-1
votes
1
answer
56
views
Deno Deploy build artifacts unexpectedly large (101 MB) despite assets <1 MB for react + vite SPA
I’m deploying to Deno Deploy, and I noticed that the generated build artifacts grows with each buld. it was ~101 MB, now it is 150 MB. my actual assets are less than 1 MB. I use Deno + Vite + React (...
2
votes
1
answer
88
views
How to correctly close a listening port in oak?
I'm trying to close the port manually (in somewhere else) but not sure the way to do it.
A smallest example:
import { Application, Router } from 'jsr:@oak/oak'
const app = new Application()
const ...
1
vote
1
answer
422
views
How can I make HTTP requests from within a Supabase Edge Function?
I have a supabase edge function and I am trying to call another API.
import "jsr:@supabase/functions-js/edge-runtime.d.ts";
Deno.serve(async (req: Request) => {
try {
const ...
1
vote
0
answers
192
views
How to make a simple Hello World server for QUIC connections?
After I add the --origin-to-force-quic-on=localhost:443 argument for the Chrome launcher, all connections (navigation ones included) start to trigger the QUIC endpoint on my server. That's totally ...
1
vote
1
answer
298
views
Why WebTransport cannot connect to my server?
When I'm trying to make a simple QUIC connection via new WebTransport('https://localhost') this request never reaches my server and immediately terminating in Chrome with Failed to establish a ...
1
vote
0
answers
47
views
Why DenoLS is removing all blank lines? Code unreadable (NeoVim + AstroNVim)
I don't know why, but seems that denoLS is removing all blank lines, no matter what, from my Deno scripts, which is making the code very cramped and, is a very annoying behaviour of the formatter.
Why?...
1
vote
1
answer
62
views
File can become invisible for Deno import
I ran into a strange problem. Lets say i have a folder named qwe} and it contains two files named asd!.js and asd#.js. I can import the file qwe}/asd!.js without any problems but when i try to import ...
0
votes
0
answers
75
views
Is this a bug in Javascript, NodeJS and/or deno? [duplicate]
JavaScript, generally, allows executing a simple expression, even though it has no side effects and is generally pretty useless. For example, the following are valid JavaScript files:
42
and
'abc'
...