Skip to content
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

zod > 3.23.0 compat #7

Closed
masterkain opened this issue Apr 28, 2024 · 2 comments
Closed

zod > 3.23.0 compat #7

masterkain opened this issue Apr 28, 2024 · 2 comments

Comments

@masterkain
Copy link

colinhacks/zod#3431 (comment)

#15 29.02 ./lib/actions/projectActions.ts:137:47
#15 29.02 Type error: Argument of type 'Zod.ZodIssue[]' is not assignable to parameter of type 'import("/app/node_modules/zod-error/node_modules/zod/lib/ZodError").ZodIssue[]'.
#15 29.02   Type 'Zod.ZodIssue' is not assignable to type 'import("/app/node_modules/zod-error/node_modules/zod/lib/ZodError").ZodIssue'.
#15 29.02     Type 'ZodInvalidUnionIssue & { fatal?: boolean | undefined; message: string; }' is not assignable to type 'ZodIssue'.
#15 29.02       Type 'Zod.ZodInvalidUnionIssue & { fatal?: boolean | undefined; message: string; }' is not assignable to type 'import("/app/node_modules/zod-error/node_modules/zod/lib/ZodError").ZodInvalidUnionIssue & { fatal?: boolean | undefined; message: string; }'.
#15 29.02         Type 'ZodInvalidUnionIssue & { fatal?: boolean | undefined; message: string; }' is not assignable to type 'ZodInvalidUnionIssue'.
#15 29.02           Types of property 'unionErrors' are incompatible.
#15 29.02             Type 'Zod.ZodError<any>[]' is not assignable to type 'import("/app/node_modules/zod-error/node_modules/zod/lib/ZodError").ZodError<any>[]'.
#15 29.02               Type 'Zod.ZodError<any>' is not assignable to type 'import("/app/node_modules/zod-error/node_modules/zod/lib/ZodError").ZodError<any>'.
#15 29.02                 Types of property 'issues' are incompatible.
#15 29.02                   Type 'Zod.ZodIssue[]' is not assignable to type 'import("/app/node_modules/zod-error/node_modules/zod/lib/ZodError").ZodIssue[]'.
#15 29.02                     Type 'Zod.ZodIssue' is not assignable to type 'import("/app/node_modules/zod-error/node_modules/zod/lib/ZodError").ZodIssue'.
#15 29.02                       Type 'ZodInvalidArgumentsIssue & { fatal?: boolean | undefined; message: string; }' is not assignable to type 'ZodIssue'.
@masterkain masterkain changed the title zod > 3.23.4 compat zod > 3.23.0 compat Apr 28, 2024
@andrewvo89
Copy link
Owner

@masterkain , can you provide a reproducible example via a codepen or something similar?
I tried zod 3.23.0 with zod-error 1.5.0 with no issues. If you could demonstrate the issue that would be great.

@masterkain
Copy link
Author

I think i solved the issue for now by removing zod from the package.json and let yarn do its thing, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants