Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue: Cannot read properties of undefined (reading 'reduce') #299

Closed
drydenwilliams opened this issue Dec 2, 2021 · 2 comments
Closed
Labels
enhancement New feature or request

Comments

@drydenwilliams
Copy link

Version Number

7.20.5

Codesandbox/Expo snack

https://codesandbox.io/s/muddy-voice-q1ilg?file=/src/NewSiteForm.tsx

Steps to reproduce

  1. Visit the sandbox
  2. Open in fullscreen mode or click here
  3. And see the error pop up

Expected behaviour

It shouldn't error like this.

What browsers are you seeing the problem on?

Chrome

Relevant log output

Cannot read properties of undefined (reading 'reduce')
    at eval (https://q1ilg.csb.app/node_modules/
hookform/resolvers/yup/dist/yup.module.js:37:139
async B
https://q1ilg.csb.app/node_modules/react-hook-form/dist/index.cjs.js:1:12720
async Object.w [as _updateValid]
https://q1ilg.csb.app/node_modules/react-hook-form/dist/index.cjs.js:1:11491
This screen is visible only in development. It will not appear if the app crashes in production.
Open your browser’s developer console to further inspect this error.
This error overlay is powered by `react-error-overlay` used in `create-react-app`.


### Code of Conduct

- [X] I agree to follow this project's Code of Conduct
@bluebill1049 bluebill1049 transferred this issue from react-hook-form/react-hook-form Dec 2, 2021
@bluebill1049 bluebill1049 added the enhancement New feature or request label Dec 3, 2021
jorisre pushed a commit that referenced this issue Dec 3, 2021
Related to #299

* prevent reduce to throw error

* prevent reduce to throw error
@jorisre
Copy link
Member

jorisre commented Dec 3, 2021

thank you for reporting the issue, the last version 2.8.4 fix it

@drydenwilliams
Copy link
Author

Thanks so much @jorisre 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants