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
8 Replies
You might have different versions of drizzle installed
Are you in a monorepo?
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
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
uhhmmmmm
ie: if you have a package as "bundler" and another as "module"
in tsconfig
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
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