-
Notifications
You must be signed in to change notification settings - Fork 15
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] - Type instantiation is excessively deep and possibly infinite. #17
Comments
If i downgrade to 1.1.1 then everything works as expected |
Can you also provide the Typescript version that your TS server is using? |
4.9.4 is the typescript version being used. I have updated my original question as well. |
FWIW, I'm also seeing this error on Best I can tell, the only change since Unfortunately, if I downgrade my project to exactly Zod For now, downgrading both
... and then we're back to this library having an opinion about React compatibility 😦 |
This issue happens to me, as well 😦
|
I'm getting this error as well, has there been any fix ? |
Same here on 1.3.0. The only solution I could find for now is either to |
Describe the bug
Not sure if a bug, but when I tried to use the
toFormikValidationSchema(Schema)
, I get a warning sayingType instantiation is excessively deep and possibly infinite.
. This seems to stress the typescript server in vs code. If I comment out this linevalidationSchema={toFormikValidationSchema(Schema)}
then VS Code works as expected. Not sure why this is. I have not had this problem in the past. I just updated to version 1.2.0.To Reproduce
Steps to reproduce the behavior:
validationSchema={toFormikValidationSchema(Schema)}
to your Formik componentType instantiation is excessively deep and possibly infinite
Expected behavior
I expect the code to not give errors and validate my form as expected
Screenshots
Desktop (please complete the following information):
Node version:
Zod, Formik and zod-formik-adapter versions:
zod: "^3.20.2",
zod-formik-adapter: "^1.2.0",
formik: "^2.2.9"
Typescript: 4.9.4
Additional context
I have tried to turn my computer on and off, restarted the ts server in vs code, and restarted vs code. It only seems to be working correctly if I do not include the validationSchema.
The text was updated successfully, but these errors were encountered: