-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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 'hasChild' of undefined #1850
Comments
Thanks for opening this issue and creating a PR. However, this is expected behaviour at this time. In the same manner as Negating the return type, when checking for a descendant where a parent module may not exist, implies the parent may exist when really you want this behaviour to be explicit. |
Can the documentation for |
For sure, this is an opportunity to offer clarity in the docs. I don't think throwing errors are a useful way to identify this concern, since the |
Version
3.5.1
Reproduction link
https://jsfiddle.net/xkLh4njp/
Steps to reproduce
What is expected?
store.hasModule() to return false
What is actually happening?
Error "TypeError: Cannot read property 'hasChild' of undefined" is thrown
The text was updated successfully, but these errors were encountered: