Questions tagged [deno]
A secure runtime for JavaScript and TypeScript.
deno
1,037
questions
3
votes
2
answers
102
views
How are ES6 module imports with HTTP redirects supposed to work?
When importing a JS module (e.g. https://example.com/module.js) from a URL that returns a 301/302 redirect to a specific version of the module (e.g. https://example.com/module-42.js), the redirected ...
0
votes
1
answer
22
views
Unable to run supabase edge functions locally
I have a simple edge functions script to run a prompt on the Gemini model and output back the result. Having used the debugger, the problem occurs at the code which listens to requests. The debugger ...
0
votes
0
answers
15
views
Can't instantiate Supabase client; fails with GoTrue error "window is not defined."
I've written a Deno-based server and am trying to use Supabase with it. However, on launch it fails with an assertion thrown from GoTrueClient.js, _isImplicitGrantFlow():
Exception has occurred: ...
0
votes
0
answers
26
views
MySQL connection issues with Deno
In Deno I'm using this module https://deno.land/x/[email protected]/mod.ts to connect to mySQL 8 database in Windows 10 and generally it works fine.
However, after a fresh start or reboot, when it tries ...
0
votes
0
answers
21
views
Is there a way to gracefully shut down Apollo Server that's built on top of Deno and Express?
Apollo Server has a plugin called ApolloServerPluginDrainHttpServer that helps shut down the server gracefully when built on top of Node's http.Server. Is there a way to gracefully shut down the ...
0
votes
1
answer
58
views
How to use reveal.js with Deno Fresh?
In my understanding, reveal.js is just vanilla JS, so there should be no problem when using it with Deno.
On routes/index.tsx I have:
import Island from "../islands/Island.tsx";
export ...
0
votes
1
answer
29
views
"deno compile" works on macOS X64 but fails with a compilation error on linux X86
Both operating systems run Deno v1.44.4.
deno compile --output ../release/cobble --allow-env --allow-net --allow-read --allow-write --allow-run ../backend/server.ts && cd ../release/ &&...
3
votes
1
answer
50
views
Does Deno's FsFile.readable automatically close the file when the stream is exhausted?
Given the following code:
const file = await Deno.open(fsPathname, { read: true })
return new Response(file.readable, { status: 200 })
Will FsFile.readable automatically close the file once the ...
0
votes
0
answers
31
views
Deno is queuing up request when a setTimeout operation is going on
Version: Deno 1.44.4
I have written a basic rate limiter implementation. It uses setTimeout to delay between the request. Here's the code implementation. The issue is whenever there are more than 2 ...
0
votes
1
answer
20
views
Disable npm registry in Deno vendored application
My Deno application is using npm dependencies
import {
ServiceProvider,
ServiceProviderInstance ,
IdentityProvider,
IdentityProviderInstance,
setSchemaValidator } from 'npm:...
1
vote
0
answers
56
views
Debug mode on nestjs project fails with nx
I use NestJS for my backend and I develop under WebStorm with the NX plugin. Everything is up to date.
If I create a new NestJS project like this
npm i -g @nestjs/cli
nest new project-name
I can ...
1
vote
0
answers
48
views
How to combine multiple audio blobs, buffers or urls into one?
I have multiple audio urls, I tried converting these audio into blobs and combining them in a deno server but weirdly the final blob only plays the first audio. What did I do wrong here?
Code with ...
1
vote
0
answers
41
views
Uploading Files to S3 Bucket usign Deno module deno-s3-lite-client
I have been trying to make a file upload controller with deno's s3 lite client but I am facing an issue with uploading the content type of my file. In their documentation, i can read that the way to ...
0
votes
0
answers
73
views
How to update `deno.lock` on removing a dependency?
When I add a dependency in my code, the deno.lock file gets updated and I see that the package's URL is visible in deno.lock.
Now when I remove the import from my code and run deno cache --reload <...
0
votes
1
answer
55
views
How to find a module in deno?
I'm trying to follow the documentation on the page:
https://orm.drizzle.team/docs/get-started-sqlite
In the documentation it has this code snippet:
import { drizzle } from 'drizzle-orm/libsql';
...