Studio error

Hi, i'm trying Studio with my pgsql setup but when i run pnpm drizzle-kit studio i get this error message : Cannot find package 'pg' imported from /home/user/dev/project/node_modules/drizzle-orm/node-postgres/index.mjs using {"node":"v18.12.1","pnpm":"8.6.9"} and the tsconfig generated by nuxt :
"forceConsistentCasingInFileNames": true,
"jsx": "preserve",
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "bundler",
"skipLibCheck": true,
"strict": true,
"allowJs": true,
"baseUrl": "/home/user/dev/project",
"noEmit": true,
"resolveJsonModule": true,
"allowSyntheticDefaultImports": true,
"forceConsistentCasingInFileNames": true,
"jsx": "preserve",
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "bundler",
"skipLibCheck": true,
"strict": true,
"allowJs": true,
"baseUrl": "/home/user/dev/project",
"noEmit": true,
"resolveJsonModule": true,
"allowSyntheticDefaultImports": true,
2 Replies
MAST
MAST17mo ago
Have you installed the pg package?
Shu
ShuOP17mo ago
oh, that was it. Kinda weird drizzle orm didnt installed it as a dependency when it depend on it ... ty
Want results from more Discord servers?
Add your server