Giter Club home page Giter Club logo

Comments (6)

sndrem avatar sndrem commented on August 11, 2024

If i downgrade to 1.1.1 then everything works as expected

from zod-formik-adapter.

robertLichtnow avatar robertLichtnow commented on August 11, 2024

Can you also provide the Typescript version that your TS server is using?

from zod-formik-adapter.

sndrem avatar sndrem commented on August 11, 2024

4.9.4 is the typescript version being used. I have updated my original question as well.

from zod-formik-adapter.

awkaiser-tr avatar awkaiser-tr commented on August 11, 2024

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.

samuelg0rd0n avatar samuelg0rd0n commented on August 11, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.