-
-
Notifications
You must be signed in to change notification settings - Fork 53
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] Generated schemas contain Typescript error #222
Comments
https://github.com/Flusinerd/clouts |
Facing the same error using Types of property 'id' are incompatible.
Type 'number | IntFieldUpdateOperationsInput | undefined' is not assignable to type 'undefined'.
Type 'number' is not assignable to type 'undefined'. |
The issue seems to be caused by |
@Flusinerd @nordowl yes this is a bug in zod versions higher than |
Just wanted to say, thank you for documenting that you have the useTypeAssertions available here. Stumbled on this thread and it helped a ton. |
Describe the bug
After running
prisma generate
the generated typescript file contains typescript errors that prevent building.Screenshots
If applicable, add screenshots to help explain your problem.
Package versions (please complete the following information):
Additional context
My schema:
The text was updated successfully, but these errors were encountered: