jaredpalmer / formik

Build forms in React, without the tears 😭
https://formik.org
Apache License 2.0
33.73k stars 2.77k forks source link

Support for React 18 in patch update v2.4.2 causing type errors #3840

Open wjdwldbs opened 1 year ago

wjdwldbs commented 1 year ago

Bug report

Formik's latest patch update v2.4.2 which upgrades the internal types to support React 18 might be an accidental breaking change. I'm on react v16 and @types/react pinned to v16.14.5 which is causing build failures due to type differences between v16 and v18. Should this have been a breaking change?

Current Behavior

Builds failing with type errors:

Screenshot 2023-06-29 at 3 56 31 PM

Expected behavior

Continued support for React 16. Or the update to be mentioned as a breaking change.

Reproducible example

Suggested solution(s)

Document as a breaking change.

Additional context

Your environment

Software Version(s)
Formik 2.4.2
React 16.0.0
TypeScript 4.0.2