Comments (6)
If i downgrade to 1.1.1 then everything works as expected
from zod-formik-adapter.
Can you also provide the Typescript version that your TS server is using?
from zod-formik-adapter.
4.9.4 is the typescript version being used. I have updated my original question as well.
from zod-formik-adapter.
FWIW, I'm also seeing this error on 1.2.0
with TypeScript 4.7.4
Best I can tell, the only change since 1.1.1
that could possibly impact toFormikValidationSchema
behavior would be the change from Zod ~3.14.4
to ^3.14.4
, since Zod is up to 3.20.2
now. 🤔
Unfortunately, if I downgrade my project to exactly Zod 3.14.4
while remaining on Zod Formik Adapter 1.2.0
, then restart my TS server in VS Code, the error still occurs! 😖 NPM dependency hell is "fun" to troubleshoot when project behavior can differ by when dependencies were frozen in lockfile.
For now, downgrading both zod
& zod-formik-adapter
is the only thing that provides relief:
"zod": "~3.14.4",
"zod-formik-adapter": "~1.1.1"
... and then we're back to this library having an opinion about React compatibility 😦
from zod-formik-adapter.
This issue happens to me, as well 😦
"typescript": "5.1.6",
(...)
"zod": "^3.22.4",
"zod-formik-adapter": "^1.2.0",
from zod-formik-adapter.
Related Issues (10)
- Request update support for React 18 HOT 8
- API suggestion
- Does not support errors coming from zodSchema.refine() HOT 7
- [BUG] Null exception handling
- Support flattened `union` errors
- check using enum does not validate HOT 14
- [BUG] schema with transform has type mismatch
- .array not working HOT 1
- [BUG] Array errors not working
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zod-formik-adapter.