Closed ad-si closed 3 weeks ago
The native part of better-sqlite3 (C++) is compiled against the NodeJS and Electron Apis. So either Bun supports one of those APIs completely or it has to offer it's own API to compile / link against. Afaik there are still issues with loading native modules that are compiled for NodeJS while stating they should be usable.
If Bun is the target runtime, using its built-in Sqlite3 driver would be more useful I guess.
@neoxpert :100: -- if I had to guess, I don't suspect @JoshuaWise will be adding native code to support the bun runtime -- but if he'd like to, he's certainly free to reopen this!
Insert this content into index.ts
Outputs this error:
My OS: macOS Sonoma 14.6.1 arm64 Bun version: 1.1.26