Drizzle-zod errors
What is supposed to be the highest version of
drizzle-orm
supported by drizzle-zod
's latest release? I'm facing a breaking error when defining validation schemas using createInsertSchema
with drizzle-orm@latest
and it persists even when trying to regress all the way to @0.30.9
, where I stopped trying older versions.
2 Replies
Did you ever find a solution for this? I am stuck here as well
I actually figured out my issue. I had circular import references in my schema file where I was importing some types. The file with the types was trying to import a table from the schema
Yeah, I should've posted how I fixed it for posterity. It was also due to a circular reference on my side where I was importing and using a reference to a table column in a file that also exported constants used to define said table column. Honestly the logs were of 0 help here.