You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
void db generate fails with ERR_PACKAGE_PATH_NOT_EXPORTED for ./_db subpath #46
void db generate fails because drizzle-kit resolves the void/_db import using Node.js CJS require(), but the ./_db export in void/package.json only defines types and import conditions — no require condition.
Error:
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './_db' is not defined by "exports" in .../node_modules/void/package.json
at Module._findPath (node:internal/modules/cjs/loader:746:31)
at nextResolveSimple (.../drizzle-kit/bin.cjs:15128:26)
Steps to reproduce:
void init
pnpm install
void db generate
The command fails immediately with the error above.
Root cause:
drizzle-kit internally uses CJS require() to resolve the schema module. Node's CJS loader only matches the require export condition, which is missing from the ./_db (and likely ./_db-pg, ./_env) exports:
Activity
shulaoda commentedon Mar 29, 2026
fix: add `require` condition to internal subpath exports for drizzle-…
chore: Update `progress.md`. (#46)
fix(security): count non-text files, follow coalesced authors, pause …