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

noUnknown gives "Cannot convert undefined or null to object" #860

Closed
garylesueur opened this issue Apr 28, 2020 · 1 comment
Closed

noUnknown gives "Cannot convert undefined or null to object" #860

garylesueur opened this issue Apr 28, 2020 · 1 comment

Comments

@garylesueur
Copy link

garylesueur commented Apr 28, 2020

Describe the bug

When I have a nested object using the "noUnknown" operator, if the object itself is missing from the value then it still tries to enumerate the keys of the object causing an error of

"Cannot convert undefined or null to object"

To Reproduce

https://codesandbox.io/s/mutable-waterfall-7zzdg?file=/src/index.test.js

Expected behavior
I would expect it to ignore the fact that the value is not there, and pass.

Platform (please complete the following information):

  • Fails in latest Chrome, Firefox and Safari
@garylesueur
Copy link
Author

This looks like might be same issue as #854

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

No branches or pull requests

1 participant