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

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

Closed
little-yao opened this issue Mar 26, 2019 · 3 comments
Closed

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

little-yao opened this issue Mar 26, 2019 · 3 comments

Comments

@little-yao
Copy link

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

@G-Bro
Copy link

G-Bro commented Mar 26, 2019

I have also encountered the same error on Firefox 67 and Chrome 73, Windows 10 after registering a module dialogs.snackbars in the Vuex state like this

    globalStore.registerModule(['dialogs', 'snackbars'], store);

The path it is trying to run path.split on is an array of length 1
image

The standalone electron devtools app has the same issues, resulting in only the component tree tab working

@devan1011
Copy link

I am also having the same issue only component tree is working in the dev tools.
When a nested vuex module is registered.

@flutterq
Copy link

[Solved] Getting Uncaught TypeError: path.split is not a function in react

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

No branches or pull requests

5 participants