Mr.Possumz
Deno not recognizing default export from npm package 'unstorage' as a function
It looks like their driver directory doesn't have a general entry file for types and their package.json exports is set up in a way that it may not be able to automatically find it. Try adding a triple slash reference to the top of the file
/// <reference types="unstorage/drivers/deno-kv.d.ts"/>
7 replies
NPM package "pg@8.16.0" does not define an export ".".
I'd imagine restarting vscode does restart the lsp but just in case let's try. You can use
cmd+shift+p
to bring up vscode commands. If you're on windows it's ctrl+shift+p
I believe. Then type in Deno restart and it show show an option to restart to lsp31 replies
high memory usage using compiled binary in docker
From what I've seen, Deno version 2 and up has a higher start up memory cost when run in Docker. I've seen similar numbers to what you're describing. They have eventually dropped a bit but the baseline is still several hundred mb higher than prior to Deno v2.0.0
15 replies
Deno env vars
are you calling
deno run
or deno task
to run the task from the deno file? If you're using the kysely CLI then it most likely expects to run in a node environment and you'd need to access to env variables as if you were in one for the sake of the migration. Alternatively, I was able to get Kysely migrations to work in Deno by just writing a migrator defined in their docs here: https://kysely.dev/docs/migrations#running-migrations10 replies
Deno, React, Next.js
Just to add to this, Fresh 2.0 is actively in dev and has had a few iterations of their alpha branch available: https://jsr.io/@fresh/core/versions
The release has been delayed because the Deno team is focusing on some upgrades to the Deno Deploy product that will pave the way for a few additional features they are aiming to include in Fresh 2.0
7 replies
Build an app with TanStack and Deno
@HudsyWudsy have you scaffolded the app directory as a Deno project? Typically that's done by calling
deno init <DIRECTORY>
. That should ask you a few questions and scaffold a basic Deno project, including adding a deno.json file. Once there's a deno.json file you should be able to call deno add jsr:@hono/hono
5 replies