-
Notifications
You must be signed in to change notification settings - Fork 12.4k
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
TypeError: Cannot read property 'length' of undefined #22948
Milestone
Comments
You're not giving props a type definition so it could be undefined and here the typeerror is coming from the spread operator because typescript can't be sure what you're passing in can be spread |
@jaydh that's right, it anyway should not raise an exception on compile time. And it used to work prior to 2.8.0 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
TypeScript Version: 2.9.0-dev.20180328
Code
Expected behavior:
No errors
Actual behavior:
Exceptions:
The text was updated successfully, but these errors were encountered: