Expected behavior
I'd expect to see the errors object displayed as a string above the form
Screenshots
Desktop (please complete the following information):
OS: OSX ventura
Browser: chrome
Version 119.0.6045.159
Additional context
Stringifying errors (as well as the rest of the formState) is often useful for me and my team to be able to quickly reference within the UI in dev environments to troubleshoot.
Describe the bug When trying to stringify my errors object, I'm receiving a TypeError Converting circular structure to JSON
To Reproduce Steps to reproduce the behavior:
Codesandbox link (Required)
RHF - V7 Yup resolver fork (with bug)
RHF - v6 Yup resolver fork (functioning as expected)
Expected behavior I'd expect to see the errors object displayed as a string above the form
Screenshots
![Screenshot 2024-01-24 at 5 37 04 PM](https://github.com/react-hook-form/resolvers/assets/474804/5f002fd5-65ea-40c8-ae21-e5fd2ebc387a)
Desktop (please complete the following information):
Additional context Stringifying errors (as well as the rest of the formState) is often useful for me and my team to be able to quickly reference within the UI in dev environments to troubleshoot.