drizzle-team / drizzle-team/drizzle-orm
[BUG]: error: Could not resolve: "node:sqlite". Maybe you need to "bun install"?
- Dominant language
- TypeScript
- Stars
- 35.8k
- Forks
- 1.6k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 4
Description
### Report hasn't been filed before.
- [x] I have verified that the bug I'm about to report hasn't been filed before.
### What version of `drizzle-orm` are you using?
1.0.0-beta.18-7eb39f0
### What version of `drizzle-kit` are you using?
1.0.0-beta.18-7eb39f0
### Other packages
_No response_
### Describe the Bug
When trying to run Drizzle Kit with Bun to use the Bun SQL it tries to load node SQLite package. This happens with any Drizzle Kit command (studio, generate, etc).
```sh
bun --bun x drizzle-kit migrate
234714 | const { DatabaseSync } = await import("node:sqlite");
^
error: Could not resolve: "node:sqlite". Maybe you need to "bun install"?
at /Users/user/project/node_modules/drizzle-kit/bin.cjs:234714:42
Bun v1.3.4 (macOS arm64)
```
Contributor guide
Assessment
This issue has not been assessed yet.