FG
💻 Software🗄️ Databases

[BUG]: Warning: async_hooks.createHook is not implemented in Bun. Hooks can still be created but will never be called.

Fresh3 months ago
Mar 14, 20260 views
Confidence Score79%
79%

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

Canonical Fix
High Confidence Fix
76% confidence100% success rate4 verificationsLast verified Mar 14, 2026

Solution: [BUG]: Warning: async_hooks.createHook is not implemented in Bun. Hooks can still be created but will never be called.

Low Risk

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.

76

Trust Score

4 verifications

100% success
  1. 1

    I faced a similar issue as well.

    I faced a similar issue as well.

  2. 2

    bun: v1.1.10

    drizzle-kit: v0.21.4 drizzle-orm: v0.30.10

  3. 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. 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

Worked: 4
Partial: 1
Last verified Mar 14, 2026

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

drizzleormtypescriptbugdrizzle/kitprioritybug/fixed-in-beta