kingbri
AbortSignals not working in Deno
Hi there,
I'm trying to create a Hono server with a disconnect handler. When I cancel the request from my client, the abort signal from the raw
Request
object never changes to true. This code works on both Hono and Bun, so I think this is an issue with Deno's fetch API. See example below (requires Hono)
2 replies
Cannot use import maps
Hi there,
I'm trying to make a project root alias
@
so I don't have to suffer through relative path import hell (../../../../file.ts
)
However, when I specify "@/": "./"
in the imports section of deno.json
, I get an error from VSCode stating this:
Therefore, I either have to use absolute imports for every file or use only relative imports. I want to be able to use both.
Is converting the project root to @/
not possible without some sort of src
directory? Thanks in advance.2 replies
Include DLL files in deno compile
I'm currently building a CLI application with Deno that I want to compile into a standalone executable which uses FFI.
I learned about
deno compile
, but I'm also stuck on how to include the DLLs that are used via FFI in my output binary. I don't want to include the DLLs separately after the binary is built, but I want to be able to ship a single binary.
For example, nexe.js
allows users to add static files under resources
https://github.com/nexe/nexe?tab=readme-ov-file#resources
Can this be replicated in Deno?2 replies