cannot find module 'drizzle-orm/pg-core' on pnpm

running pnpm dlx drizzle-kit push:pg gave me this error
node:internal/modules/cjs/loader:1147
throw err;
^

Error: Cannot find module 'drizzle-orm/pg-core'
Require stack:
- /mnt/36A097D5A09799C7/.pnpm-store/v3/tmp/dlx-38698/node_modules/.pnpm/[email protected]/node_modules/drizzle-kit/bin.cjs
at Module._resolveFilename (node:internal/modules/cjs/loader:1144:15)
at Module._load (node:internal/modules/cjs/loader:985:27)
at Module.require (node:internal/modules/cjs/loader:1235:19)
at require (node:internal/modules/helpers:176:18)
at src/serializer/studio.ts (/mnt/36A097D5A09799C7/.pnpm-store/v3/tmp/dlx-38698/node_modules/.pnpm/[email protected]/node_modules/drizzle-kit/bin.cjs:60369:23)
at __init (/mnt/36A097D5A09799C7/.pnpm-store/v3/tmp/dlx-38698/node_modules/.pnpm/[email protected]/node_modules/drizzle-kit/bin.cjs:9:56)
at Object.<anonymous> (/mnt/36A097D5A09799C7/.pnpm-store/v3/tmp/dlx-38698/node_modules/.pnpm/[email protected]/node_modules/drizzle-kit/bin.cjs:66004:1)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
at Module.load (node:internal/modules/cjs/loader:1207:32) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/mnt/36A097D5A09799C7/.pnpm-store/v3/tmp/dlx-38698/node_modules/.pnpm/[email protected]/node_modules/drizzle-kit/bin.cjs'
]
}

Node.js v20.11.1
node:internal/modules/cjs/loader:1147
throw err;
^

Error: Cannot find module 'drizzle-orm/pg-core'
Require stack:
- /mnt/36A097D5A09799C7/.pnpm-store/v3/tmp/dlx-38698/node_modules/.pnpm/[email protected]/node_modules/drizzle-kit/bin.cjs
at Module._resolveFilename (node:internal/modules/cjs/loader:1144:15)
at Module._load (node:internal/modules/cjs/loader:985:27)
at Module.require (node:internal/modules/cjs/loader:1235:19)
at require (node:internal/modules/helpers:176:18)
at src/serializer/studio.ts (/mnt/36A097D5A09799C7/.pnpm-store/v3/tmp/dlx-38698/node_modules/.pnpm/[email protected]/node_modules/drizzle-kit/bin.cjs:60369:23)
at __init (/mnt/36A097D5A09799C7/.pnpm-store/v3/tmp/dlx-38698/node_modules/.pnpm/[email protected]/node_modules/drizzle-kit/bin.cjs:9:56)
at Object.<anonymous> (/mnt/36A097D5A09799C7/.pnpm-store/v3/tmp/dlx-38698/node_modules/.pnpm/[email protected]/node_modules/drizzle-kit/bin.cjs:66004:1)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
at Module.load (node:internal/modules/cjs/loader:1207:32) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/mnt/36A097D5A09799C7/.pnpm-store/v3/tmp/dlx-38698/node_modules/.pnpm/[email protected]/node_modules/drizzle-kit/bin.cjs'
]
}

Node.js v20.11.1
1 Reply
hanako
hanakoOP7mo ago
package.json :
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"@auth/drizzle-adapter": "^1.0.1",
"@next/env": "^14.2.3",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"drizzle-orm": "^0.30.10",
"lucide-react": "^0.378.0",
"next": "14.2.3",
"next-auth": "5.0.0-beta.17",
"pg": "^8.11.5",
"postgres": "^3.4.4",
"react": "^18",
"react-dom": "^18",
"tailwind-merge": "^2.3.0",
"tailwindcss-animate": "^1.0.7"
},
"devDependencies": {
"@types/node": "^20",
"@types/pg": "^8.11.6",
"@types/react": "^18",
"@types/react-dom": "^18",
"drizzle-kit": "^0.20.18",
"eslint": "^8",
"eslint-config-next": "14.2.3",
"postcss": "^8",
"tailwindcss": "^3.4.1",
"typescript": "^5"
}
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"@auth/drizzle-adapter": "^1.0.1",
"@next/env": "^14.2.3",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"drizzle-orm": "^0.30.10",
"lucide-react": "^0.378.0",
"next": "14.2.3",
"next-auth": "5.0.0-beta.17",
"pg": "^8.11.5",
"postgres": "^3.4.4",
"react": "^18",
"react-dom": "^18",
"tailwind-merge": "^2.3.0",
"tailwindcss-animate": "^1.0.7"
},
"devDependencies": {
"@types/node": "^20",
"@types/pg": "^8.11.6",
"@types/react": "^18",
"@types/react-dom": "^18",
"drizzle-kit": "^0.20.18",
"eslint": "^8",
"eslint-config-next": "14.2.3",
"postcss": "^8",
"tailwindcss": "^3.4.1",
"typescript": "^5"
}
Want results from more Discord servers?
Add your server