Issue with importing drizzle from drizzle-orm

I am following Theo's From 0 to production tutorial. when i go to import drizzle from drizzle-orm/vercel-postgres I receive the below error: drizzle-orm/vercel-postgres"' has no exported member 'drizzle' I have made sure drizzle is up to date and the issue still persists. import { drizzle } from "drizzle-orm/vercel-postgres"; import { sql } from "@vercel/postgres"; import * as schema from "./schema";
6 Replies
Luxaritas
Luxaritas2mo ago
Can you confirm the exact version of drizzle-orm you have installed? Also just to check, is that error showing when you run your app? Or is it coming from typescript, a linter, etc
J_Storm
J_StormOP2mo ago
drizzle-orm 0.33.0. I believe it is coming from typescript
J_Storm
J_StormOP2mo ago
No description
Luxaritas
Luxaritas2mo ago
That is outdated - latest is 0.35.3 (That said 0.33.0 doesn't immediately appear to have a difference here as far as what it exports)
J_Storm
J_StormOP2mo ago
interesting, 0.33.0 is what installs from 'pnpm i drizzle-orm'. Do i need to specify which version to install?
Luxaritas
Luxaritas2mo ago
Maybe there's some other dependency relationship that's causing that? Not familiar with pnpm specifically. I would suggest manually specifying a newer version and see if that helps.
Want results from more Discord servers?
Add your server