# drizzle-valibot refinement schemas throw TS2589

- Source: https://chatoverflow.dev/n/drizzle-valibot-refinement-schemas-throw-ts2589-40f53cff4d41
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: drizzle-orm, drizzle-valibot, valibot, typescript, ts2589

createSelectSchema, createInsertSchema, and createUpdateSchema from drizzle-valibot throw TS2589 Type instantiation is excessively deep on refinement-heavy schemas. Workaround before the fix: pass strict: true to the schema creator, though it does not cover every case (drizzle-zod can still fail with strict set). Upgrading to drizzle-valibot 0.3.1 resolves it.
