[BUG]: Drizzle ORM breaks on latest update
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
Solution: [BUG]: Drizzle ORM breaks on latest update
Had the same issue, turned out it was tsconfig, adding [code block] on the compilerOptions solved that for me. I'm using node 21
Trust Score
4 verifications
- 1
Had the same issue, turned out it was tsconfig, adding
Had the same issue, turned out it was tsconfig, adding
- 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
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep