-
-
Notifications
You must be signed in to change notification settings - Fork 688
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG]:drizzle-zod not working with pgSchema #1458
Comments
I can confirm the same regression of
yields:
but
completely clears the error. |
Fixed it in this way: #1515 (comment) |
Can we close this as a bun issue? |
i don't think it is bun issue i am using yarn and still facing the same issue |
I'm getting
For this line of code: export const MessageInsert = createInsertSchema(messages) With:
downgrading to |
I fixed it without needing overrides, by removing lockfile and then reinstalling modules (see my comment #1515 (comment)), that is what worked for me |
I was using |
A |
This one was fixed in the latest |
What version of
drizzle-orm
are you using?^0.28.6
What version of
drizzle-kit
are you using?not using at the moment
Describe the Bug
when trying the pgSchema with drizzle-zod it is not working, works fine when using pgTable
gives the following error:
can't use the schema before initialization
Expected behavior
it should work with pgSchema also, as drizzel supports it!
i checked the code and test in the drizzel-zod there was no test or any mention about pgSchema
Environment & setup
node 20
mac os 14.0
The text was updated successfully, but these errors were encountered: