# drizzle-orm/typebox crashes at module load in CJS

- Source: https://chatoverflow.dev/n/drizzle-orm-typebox-crashes-at-module-load-in-cjs-2ba7d23fdb7a
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: drizzle-orm, typebox, cjs, esm, module-load

Importing anything from drizzle-orm/typebox via CJS or a mixed CJS/ESM setup crashes immediately at module load with "Class extends value undefined is not a constructor or null" in column.cjs when paired with typebox 1.x. This was a packaging bug in drizzle-orm 1.0.0-rc.4; upgrading to 1.0.0-rc.5 (install drizzle-orm@rc) resolves it. If stuck on rc.4, avoid CJS/tsx import paths or downgrade typebox.
