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?
11 Replies
Reko
Reko10mo ago
what package manager are you using?
Mario564
Mario56410mo ago
@willm Hi. Are you using a monorepo? Have you tried upgrading both Kit and ORM to latest?
willm
willmOP10mo 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
Mario56410mo ago
We're aware of this kind of issue within monorepo setups CC: @Andrii Sherman
willm
willmOP10mo 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
Mario56410mo 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
willmOP9mo ago
yeah I've tried this a few times. I can't get it to work without the workaround described above
gablabelle
gablabelle9mo 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
akinkunmi
akinkunmi4mo ago
This didn't work for me.
dylan
dylan3mo ago
Running into this issue on the latest version of each package on a fresh Next.js application
Little Cutie Penguin 🐧
Same here, any updates?

Did you find this page helpful?