jaredpalmer / formik

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

RangeError: Maximum call stack size exceeded #3956

Closed arslansajid closed 8 months ago

arslansajid commented 9 months ago

Bug report

After migrating from v1 to v2, I am facing the error: RangeError: Maximum call stack size exceeded

Current Behavior

image

Expected behavior

The typecheck should pass and there should not be an error related to RangeError: Maximum call stack size exceeded

Additional context

Very hard to debug as the problem could be anywhere.

Your environment

Software Version(s)
Formik 2.4.5
React 18.2.0
TypeScript 4.9.4
Browser Chrome, Safari, Firefox
npm/Yarn yarn
Operating System MacOs Ventura 13.3
arslansajid commented 8 months ago

Looks like the crash issue is caused by Typescript and the bug is not in Formik, hence closing this bug ticket.

TS bug reported here: https://github.com/microsoft/TypeScript/issues/57786