FG
๐Ÿ’ป Software๐Ÿ—„๏ธ Databases

[BUG]: Drizzle ORM breaks on latest update

Freshover 1 year ago
Mar 14, 20260 views
Confidence Score80%
80%

Problem

What version of `drizzle-orm` are you using? 0.31.0 What version of `drizzle-kit` are you using? 0.22.1 Describe the Bug When trying to use a select, using where clause I get this massive error, when downgrading to 0.30.10, the error disappears. Argument of type 'SQL<unknown>' is not assignable to parameter of type 'SQL<unknown> | ((aliases: { id: PgColumn<{ name: "id"; tableName: "users"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: true; hasDefault: true; enumValues: [string, ...string[]]; baseColumn: never; }, {}, {}>; ... 7 more ...; companyId: PgColumn<...>; }) => SQL<...> | undefin...'. Type 'import("/Users/fernandortec/Desktop/coding/dev-sculpt/apps/server/node_modules/drizzle-orm/sql/sql").SQL<unknown>' is not assignable to type 'import("/Users/fernandortec/Desktop/coding/dev-sculpt/node_modules/drizzle-orm/sql/sql").SQL<unknown>'. Types have separate declarations of a private property 'shouldInlineParams'. Expected behavior _No response_ Environment & setup _No response_

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]: Drizzle ORM breaks on latest update

Low Risk

Had the same issue, turned out it was tsconfig, adding [code block] on the compilerOptions solved that for me. I'm using node 21

76

Trust Score

4 verifications

100% success
  1. 1

    Had the same issue, turned out it was tsconfig, adding

    Had the same issue, turned out it was tsconfig, adding

  2. 2

    on the compilerOptions solved that for me. I'm using node 21

    on the compilerOptions solved that for me. I'm using node 21

Validation

Resolved in drizzle-team/drizzle-orm GitHub issue #2418. 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

drizzleormtypescriptbugprioritymonorepo