please install required packages: 'drizzle-orm'

I'm getting the following error when I run drizzle-kit push. I don't think I changed anything and drizzle-orm is definitely installed and working in my app. Any ideas?
8 Replies
Reko
Reko3mo ago
what package manager are you using?
Mario564
Mario5642mo ago
@willm Hi. Are you using a monorepo? Have you tried upgrading both Kit and ORM to latest?
willm
willmOP2mo ago
I am using a monorepo. I’m using turborepo. I believe I tried upgrading both but I’m not positive. I’ll try later today when I’m on my laptop and I’ll let you know
Mario564
Mario5642mo ago
We're aware of this kind of issue within monorepo setups CC: @Andrii Sherman
willm
willmOP2mo ago
is it a recent development? Everything was fine for the last week copying the drizzle-orm folder from the app's node_modules to node_modules in the root of the turborepo project works
Mario564
Mario5642mo ago
It's been a persistent issue, I believe it occurs after updating one or both packages Have you tried deleting the node_modules folder(s), reinstalling the packages and see if that works?
willm
willmOP2mo ago
yeah I've tried this a few times. I can't get it to work without the workaround described above
gablabelle
gablabelle4w ago
I just had this issue in a pnpm monorepo, and running pnpm drizzle-kit pull --config drizzle.config.ts instead of pnpx drizzle-kit pull --config drizzle.config.ts solved the issue for me

Did you find this page helpful?