Closed diegoalzate closed 2 weeks ago
So I came across one of those legendary tsconfig bugs today and it turns out we should just use
https://github.com/tsconfig/bases
my previous config was just using TotalTypescript recommendation when running on node but it actually causes issues when using version 0.29.0 and onwards.
What version of
drizzle-orm
are you using?0.29.5
What version of
drizzle-kit
are you using?No response
Describe the Bug
packages:
i have my schema setup in multiple files and they are all exported on schema.ts.
it looks something like this: db/ users.ts likes.ts comments.ts schema.ts <- exports everything
on previous versions (less than v0.28.6) I could pass around the db pool that is created and specify that it will be
dbPool: NodePgDatabase<typeof schema>
and define it by doing:From version 0.29.5 onwards I can no longer use the query builder it returns the following typescript errors:
This is fixed by going back down to version 0.28.6. I would like to be up to date with drizzle but I'm not sure why it's broken or how to fix it.
an example of a schema table would be:
Expected behavior
I expect that the query builder should not fail when upgrading from 0.28 -> 0.29. I have tried newer versions and it also fails. There should be a guide on how to upgrade this version if it is going to break query lsp
Environment & setup
OS: mac 14.4.1 IDE: vscode NODE: 0.20.14