drizzle-team / drizzle-orm

Headless TypeScript ORM with a head. Runs on Node, Bun and Deno. Lives on the Edge and yes, it's a JavaScript ORM too 😅
https://orm.drizzle.team
Apache License 2.0
24.11k stars 610 forks source link

[BUG]: "Please install latest version of drizzle-orm" #3248

Open L-Mario564 opened 1 day ago

L-Mario564 commented 1 day ago

What version of drizzle-orm are you using?

?

What version of drizzle-kit are you using?

?

Describe the Bug

From drizzle-kit-mirror: https://github.com/drizzle-team/drizzle-kit-mirror/issues/406.

Hello, I can't make the current drizzle-kit version work with my setup. No matter what command I try I am getting this error: grafik

I am suspecting that npm workspaces might interfere here. When I installed both packages (kit and orm) in one of the workspaces (called backend) with the commands:

npm i -w backend drizzle-orm@latest
npm i -w backend -D drizzle-kit@latest

drizzle-kit is located in the node_modules directory in the project root and drizzle-orm is located in the backend-workspaces node_modules.

Heres what my sub-packages package.json entries look like: "drizzle-orm": "^0.30.10"

and under devDependencies: "drizzle-kit": "^0.21.1"

Expected behavior

No response

Environment & setup

No response

darrenbarklie commented 11 hours ago

Ran into this issue with

"drizzle-kit": "^0.27.0",
"drizzle-orm": "^0.36.0",

in an Nx controlled PNPM monorepo.

Adding the following as suggested by @mmd-moradi did not resolve, unfortunately:

"overrides": {
  "react": "^18.2.0"
}