Drizzle-Zod not supported in latest version of Drizzle-ORM
I tried upgrading to drizzle orm 0.36, but I was having problems similar to this github issue. I downgraded back and everything is working fine. Has anybody been having this issue?
https://github.com/drizzle-team/drizzle-orm/issues/3125
GitHub
[BUG]: Latest versions of drizzle-orm (0.34.1) and drizzle-zod (0.5...
What version of drizzle-orm are you using? 0.34.1 What version of drizzle-kit are you using? 0.25.0 Describe the Bug For example, I have a table: export const userTable = pgTable('user', { ...
6 Replies
I'm having this issue as well
what's the version you downgraded to ?
@Niiju sorry just saw your message. I these are the versions that are working for me: "drizzle-orm": "^0.35.3",
"drizzle-zod": "^0.5.1",
thank you, I tried it but still get the error :/ did you do anything else?
Send the error message you are getting. Maybe it is not the same error as I was getting
@Niiju just updated my packages again to see if they corrected it. In my case the error is gone now with the upgraded version
sorry I didnt see :
export const selectUserSchema = createSelectSchema(usersInAuth);
no luck. I didn't do anything else other than drizzle-kit pull and creating a zod schema
I am having the same issue:
"drizzle-orm": "^0.36.3",
"drizzle-kit": "0.28.1",
I have 0 code completion, typescript errors everywhere.
Can anyone help?
my config:
export const db = drizzle({
client: createPool(),
logger: true,
schema: { ...schema, ...relations },
})