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
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
drizzle-orm 0.33.0. I believe it is coming from typescript
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)
interesting, 0.33.0 is what installs from 'pnpm i drizzle-orm'. Do i need to specify which version to install?
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.