H3Error: Cannot find module 'bun:sqlite' imported from

Same code works just fine with better-sqlite3 File has "use server" at start, so how it tries to find it seems to be important?
2 Replies
Ciantic
CianticOP5w ago
I think this is a quite difficult to fix: https://github.com/oven-sh/bun/issues/6738
GitHub
Vite Rollup fails on "bun:sqlite" import even when it is marked as ...
What version of Bun is running? 1.0.7+b0393fba6200d8573f3433fb0af258a0e33ac157 What platform is your computer? Darwin 23.0.0 arm64 arm What steps can reproduce the bug? When importing bun:sqlite in...
Ciantic
CianticOP5w ago
Actually! It was easier to fix than I thought:
bun --bun run dev
bun --bun run dev
The vinxi/nitro thingamabob starts some node processes, and this somehow shims them to start bun processes, or something like that.
Want results from more Discord servers?
Add your server