Skip to content

Uncaught TypeError: path.split is not a function #919

@little-yao

Description

@little-yao

Version

5.0.1

Browser and OS info

Chrome 73

Steps to reproduce

on the chrome, throw a error is "Uncaught TypeError: path.split is not a function" when I use "registerModule" to register a nested module. Here is my code:
this.$store.registerModule(['activity', 'detail'], module);
The position of error code and stack is here:
image
I think the reason of this error is because of setting "path" param with a error type,
it want to get a string, but set array with slice
image

What is expected?

set path with a correct type

What is actually happening?

set "path" param with array, but it want to get string

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions