© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Team•3y ago
groovebucket

Schema not ingested with drizzle-orm/node-postgres

I have a db connection for production using Vercel Postgres. It works great. I'm trying to set up a dev connection to a local Postgres instance.

I have the following code:

import { drizzle as jsDrizzle } from "drizzle-orm/node-postgres";
const db = jsDrizzle(
      new pkg.Pool({
        connectionString: process.env.LOCAL_POSTGRES_URL,
      }),
      { schema }
    );
import { drizzle as jsDrizzle } from "drizzle-orm/node-postgres";
const db = jsDrizzle(
      new pkg.Pool({
        connectionString: process.env.LOCAL_POSTGRES_URL,
      }),
      { schema }
    );


But, when I run my app, I get
Cannot read properties of undefined (reading 'findMany')
Cannot read properties of undefined (reading 'findMany')
. This immediately made me think to check that I was passing my schema into drizzle. But, alas, I found that I was already doing that. This is the same schema that I pass into my prod Vercel PG connection, and it works there. Any pointers?
Drizzle TeamJoin
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Migrations not being applied (drizzle-orm/node-postgres/migrator)
Drizzle TeamDTDrizzle Team / help
3y ago
how to define postgres schema (other than 'public') while setting up with drizzle-orm/node-postgres
Drizzle TeamDTDrizzle Team / help
3y ago
Postgres replication using drizzle orm
Drizzle TeamDTDrizzle Team / help
12mo ago
Postgres Schema (namespace) + Drizzle
Drizzle TeamDTDrizzle Team / help
2y ago