Replies: 1 comment
-
I am using latest drizzle |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Issue with leftJoin in drizzle-orm: TypeScript type incompatibility
I'm encountering a TypeScript error when trying to use
leftJoin
with drizzle-orm (PostgreSQL). The error message is as follows:Schema structure
All schema definitions are inside
src/db/schema/
, split across multiple files and exported via anindex.ts
. I usepgTable
fromdrizzle-orm/pg-core
for all tables.Example:
Query
The error occurs at the
leftJoin
function.Has anyone encountered this issue or found a solution?
Is there something wrong with how the schema is imported/exported, or is it a type mismatch between different versions of drizzle-orm or its dependencies?
Any advice would be appreciated!
Beta Was this translation helpful? Give feedback.
All reactions