nico
DTDrizzle Team
•Created by nico on 11/9/2023 in #help
How to use drizzle-zod generated schemas in Next.JS frontend?
I'm currently using the pages dir in Next.JS and I have a function making an API call. I want to pass the returned body into the generated zod schema using zod and drizzle-zod. The problem is, when I import any created schema, I receive this error:
This leads me to believe that I can't use my zod schemas because they depend on the drizzle table created with pgTable, which relies on
net
. Is there a way around this?3 replies