Deno not recognizing default export from npm package 'unstorage' as a function
unstorage
with the Deno KV driver, as per https://unstorage.unjs.io/drivers/deno
When I import the driver and attempt to call it, the LSP reports that denoKVdriver
lacks a call signature, and type-checking also fails:...deno compile tree-shaking
deno compile
to produce a single binary, is there any tree-shaking performed?
specifically, if i perform an import such as import * as yaml from "@std/yaml";
and then only use yaml.parse
and yaml.stringify
from the module, will the end bundle include the rest of the module, or only those two plus any dependencies?...NPM package "pg@8.16.0" does not define an export ".".
deno install npm:pg
. However when trying to import it in any form from...Is there a way to use `tsconfig.json` `compilerOptions.types`?
/// <reference types="npm:@types/serviceworker" />
/// <reference types="npm:@types/serviceworker" />
tsconfig.json
file like normal Node/TypeScript projects?...Incorrect documentation example (partial mocking)
spy()
function should only receive two arguments. How can i fix or do partial mocking?
Thanks
- jsr:@std/testing/mock 1.0.12...
How to deploy a staging (preview?) branch
Supabase Client Causing Resourse Leak During Integration Tests
Make vscode not treat my client folder as a deno project
Websocket implementation
Cors No 'Access-Control-Allow-Origin'
``
const response = await fetch(
http://localhost:8000/users/${userId}/cards`, {...Dependencies not found from a process that was spawned using Node’s spawn process library
How do I view CPU time?
Third-Party Library Uses `window` not `globalThis` Causing Issues.
error: Uncaught (in promise) ReferenceError: window is not defined
With further information
``
info: window global is not available in Deno 2.
hint: Replace
window with
globalThis`....Deno check fail
launch.json for debugging deno next.js in vs code
Frameworks That Support Deno
Why is `mutate()` missing in `npm:@deno/kv`?
.mutate()
missing in AtomicOperation
of the @deno/kv
NPM package while it's in AtomicOperation
of built-in KV in Deno? This makes the code incompatible. What am I missing?Use deno serve for tcp
deno serve
especially because it has a --parallel
flag. I would like to use this to spawn parallel plain tcp/uds socket servers. But as far as I can tell this method can only be used for http servers. Am I correct? Is there a different elegant solution to accomplish this?Segmentation fault when using johnny-five with deno