Urgent help with drizzle-kit commands
Hello Devs! I have a project using pnpm. I have added drizzle-orm v^0.37.0 as dep and drizzle-kit v^0.29.1 as devDep. and a drizzle.config.ts at the root folder but when I run
pnpm drizzle-kit generate
or other commands like push or migrate, it exits with code 1 with message: "This version of drizzle-kit requires newer version of drizzle-orm
Please update drizzle-orm package to the latest version 👍". I don't understand what seems to be the issue here yet both drizzle packages are latest versions.4 Replies
This seems to be a reported (and unresolved) bug: https://github.com/drizzle-team/drizzle-orm/issues/3578
GitHub
[BUG]: Installing latest drizzle-kit and drizzle-orm results in ver...
Report hasn't been filed before. I have verified that the bug I'm about to report hasn't been filed before. What version of drizzle-orm are you using? 0.36.3 What version of drizzle-kit...
Hmm I am not sure how to resolve
Weirdly enough, I don't have this problem on my machine. Looking at the source code, I can't find the bug either
Can you try:
1. Delete the
node_modules
folder
2. Clear the store: pnpm store prune
3. Reinstall everything: pnpm install
Resolved it by deleting
node_modules
folder and reinstalling. Thanks, 'been struggling with this for a while.An alternative solution could also be running
pnpm exec
instead of pnpm