Drizzle QB -> Can't utilize tables defined to query data

I'm getting this weird erorr, maybe it is something to do with my tsconfig.json or versions: typescript = 5.5.4 drizzle-orm = 0.33
No description
8 Replies
Gustavo Trapp
Gustavo TrappOP4mo ago
No description
Angelelz
Angelelz4mo ago
You might have different versions of drizzle installed Are you in a monorepo?
Gustavo Trapp
Gustavo TrappOP4mo ago
yes, but i've already checked they are on the same version 0.33 what is most weird, it happens only sometimes if i delete node_modules and package-lock then install after I've just cloned the repository it doesn't work, but with and older repo which I haven't removed node_modules i don't have this problem its kinda hard to explain sorry
Angelelz
Angelelz4mo ago
I've seen this problem before It also happens when part of your code imports from the drizzle cjs exports and the other part imports from the mjs exports
Gustavo Trapp
Gustavo TrappOP4mo ago
uhhmmmmm
Angelelz
Angelelz4mo ago
ie: if you have a package as "bundler" and another as "module" in tsconfig
Gustavo Trapp
Gustavo TrappOP4mo ago
yes was going to say that let me check btw what key do I change i cant seem to find one that has both bundler and module options
Angelelz
Angelelz4mo ago
You can select either one, but the packages that use drizzle in your monorepo have to have the same I’m talking in your tsconfig
Want results from more Discord servers?
Add your server