Skip to content

TypeError: Cannot read property 'hasChild' of undefined #1850

@urbnjamesmi1

Description

@urbnjamesmi1

Version

3.5.1

Reproduction link

https://jsfiddle.net/xkLh4njp/

Steps to reproduce

  1. Create a Vuex store.
  2. Call store.hasModule() with an array of at least 2 elements where neither module has been registered to the store.

What is expected?

store.hasModule() to return false

What is actually happening?

Error "TypeError: Cannot read property 'hasChild' of undefined" is thrown

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.x4.xbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions