Closed calebkish closed 1 year ago
Thank you for making this issue It seems bun 1.0 may have broke some compatibility with some of the turso stuff I will ask in the turso discord if they know a fix
@calebkish
not the same exact issue, but same root problem... bun
heres the link to make an issue- https://github.com/libsql/libsql-client-ts the turso people are working hard to help, if any code changes are required here when they get a fix in lmk
I believe the problem here is that file urls use better-sqlite3, which uses the native V8 bindings - not supported by bun.
Im not using this repo but build something similiar and for me it worked putting the .env
file next to the index.ts
where createClient
is called.
BTW, All issues for libsql with bun is likely fixed (atleast for me) after this: https://github.com/libsql/libsql-js/commit/39c8ac802093282718459140ab3562baf91f183c
a ton of things have improved in recent versions of the libsql stuff feel free to reopen if you have a problem
bun version: 1.0.0 platform: arch linux 6.5.2-arch1-1 (btw)
steps to reproduce:
fwiw, I'm not encountering this issue when running on node instead of bun.