Vue-devtools: Uncaught TypeError: path.split is not a function

Created on 26 Mar 2019  路  2Comments  路  Source: vuejs/vue-devtools

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

bug high

Most helpful comment

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

js 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

All 2 comments

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

js 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

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ispal picture ispal  路  4Comments

trollderius picture trollderius  路  3Comments

topul picture topul  路  4Comments

pxwee5 picture pxwee5  路  3Comments

Gedminas picture Gedminas  路  3Comments