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
GitHub
GitHub - Boby900/lucia-demo
Contribute to Boby900/lucia-demo development by creating an account on GitHub.
No description
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";...
Jump to solution
3 Replies
Solution
Pradip Chaudhary
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 });
Boby
Boby3mo ago
hey, thanks @Pradip Chaudhary now it's working 🙏
Pradip Chaudhary
My pleasure 😊
Want results from more Discord servers?
Add your server