drizzle-zod 0.6.1 has errors on each createXyzSchema

Hey everyone, Does anyone know how to handle this error:
The inferred type of 'selectWorkspacesSchema' cannot be named without a reference to '../node_modules/drizzle-zod/schema.types.internal.mjs'. This is likely not portable. A type annotation is necessary. ts(2742)
The inferred type of 'selectWorkspacesSchema' cannot be named without a reference to '../node_modules/drizzle-zod/schema.types.internal.mjs'. This is likely not portable. A type annotation is necessary. ts(2742)
I'm getting it on createSelectSchema(table), createUpdateSchema(table) and createInsertSchema(table) Thanks!
2 Replies
Jikyu
Jikyu6d ago
@playsonmac known issue, track discussion here: https://github.com/drizzle-team/drizzle-orm/issues/3732
GitHub
[BUG]: The inferred type of X cannot be named without a reference t...
Report hasn't been filed before. I have verified that the bug I'm about to report hasn't been filed before. What version of drizzle-orm are you using? 0.38.0 What version of drizzle-kit...
playsonmac
playsonmacOP6d ago
Thanks!

Did you find this page helpful?