Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Importing better-sqlite3 causes crash #15834

Closed
vedantroy opened this issue Dec 18, 2024 · 1 comment
Closed

Importing better-sqlite3 causes crash #15834

vedantroy opened this issue Dec 18, 2024 · 1 comment
Labels
crash An issue that could cause a crash

Comments

@vedantroy
Copy link

What version of Bun is running?

1.1.33+247456b67

What platform is your computer?

Darwin 24.1.0 arm64 arm

What steps can reproduce the bug?

import Database from "better-sqlite3"
new Database("foo")

What is the expected behavior?

It works.

What do you see instead?

dyld[65247]: missing symbol called

Additional information

Question -- can I just import from bun:sqlite as a drop-in replacement for better-sqlite3?

@vedantroy vedantroy added bug Something isn't working needs triage labels Dec 18, 2024
@190n
Copy link
Contributor

190n commented Dec 19, 2024

This happens because better-sqlite3 uses V8 APIs that Bun doesn't support yet. You can track our progress on V8 in issue #4290.

can I just import from bun:sqlite as a drop-in replacement for better-sqlite3?

The APIs aren't exactly the same.

@190n 190n closed this as completed Dec 19, 2024
@190n 190n added crash An issue that could cause a crash and removed bug Something isn't working needs triage labels Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crash An issue that could cause a crash
Projects
None yet
Development

No branches or pull requests

2 participants