Property 'userTable' does not exist on type 'DrizzleTypeError<"Seems like the schema generic is.. ">

I am trying to run a filter and I am getting this error, PFA

https://github.com/Boby900/lucia-demo
Screenshot_600.png
GitHub
Contribute to Boby900/lucia-demo development by creating an account on GitHub.
Solution
Hey @Boby
It seems to me that you've not passed your schemas to the function call while create the db instance like following

import * as schema from "./schema"; import { drizzle } from "drizzle-orm/postgres-js"; import postgres from "postgres"; const queryClient = postgres(process.env.DATABASE_URL); export const db = drizzle(queryClient, { schema });
Was this page helpful?