[BUG]: Warning: async_hooks.createHook is not implemented in Bun. Hooks can still be created but will never be called.
Problem
What version of `drizzle-orm` are you using? 0.30.9 What version of `drizzle-kit` are you using? 0.20.17 Describe the Bug Bun doesn't support a feature drizzle-kit uses, but bun is an option in your documentation. => db pulling doesn't work using bun, meaning you have to use npm to excecute the drizzle-kit commands which leads to increased complexity, if you want to use drizzle-kit in github actions for example. (Because you need to convert the bun lockfile to a yarn lockfile meaning you have to setup yarn and then npm to execute the scripts in the package.json file). Expected behavior Bun supporting a feature you use in your code if you say it works with bun. Environment & setup npm v18 bun v1.1.6
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: [BUG]: Warning: async_hooks.createHook is not implemented in Bun. Hooks can still be created but will never be called.
I faced a similar issue as well. bun: v1.1.10 drizzle-kit: v0.21.4 drizzle-orm: v0.30.10 When I ran bun drizzle-kit generate on an AWS Fargate, a warning was displayed and the table schema was not detected. [code block] Installing a relatively new version of nodejs allows bun drizzle-kit generate to work properly, but it is not a fundamental solution, so I am troubled.
Trust Score
4 verifications
- 1
I faced a similar issue as well.
I faced a similar issue as well.
- 2
bun: v1.1.10
drizzle-kit: v0.21.4 drizzle-orm: v0.30.10
- 3
When I ran bun drizzle-kit generate on an AWS Fargate, a warning was displayed a
When I ran bun drizzle-kit generate on an AWS Fargate, a warning was displayed and the table schema was not detected.
- 4
Installing a relatively new version of nodejs allows bun drizzle-kit generate to
Installing a relatively new version of nodejs allows bun drizzle-kit generate to work properly, but it is not a fundamental solution, so I am troubled.
Validation
Resolved in drizzle-team/drizzle-orm GitHub issue #2239. Community reactions: 6 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep