-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
An error occurred in hook getInspectorState if vuex module has /
in the key
#1696
Comments
Got the same problem. |
@crunk1 Looks like you have an issue with vue-router. Please open another issue with more details about versions of libraries you use and a runnable reproduction. |
I did a hard reset. F12 => RMB => Hard Reboot. This solved the error =) |
@AjBreidenbach The vuex inspector handles errors inside getters. |
Thank you for your reply @Akryum. The error handling was definitely working for me on previous versions of the devtools. If I get a chance I'll try to create a minimal reproduction. Seems like it might be tricky to reproduce. |
I has the same error in my project. import { defineStore } from 'pinia'
export const useUser = defineStore('user', {
state: () => ({
data_: [],
}),
getters: {
data_: (state) => state.data_ || [],
},
}) |
@AjBreidenbach I've found a case when getters error would not be catched, fixed in vuejs/devtools@77f4cff |
Same issue after updating vue-dev-tools, please reopen.
|
@gkatsanos Please open a new issue with details and a reproduction. Thanks. |
we have a corporate 300 component application with about 15 namespaced Vuex modules, how do I create a reproduction link without putting all our private repo code in the public domain? What you're asking seems practically impossible. |
To create a runnable reproduction, create a repo or zip with the exact same libraries and versions you are using, which reproduces the issue. This is entirely possible as many ones already do it. Without it it's sometimes extremely difficult or impossible to fix the issue you are experiencing.
This is unrealistic as testing every possible usages and combinations of libraries in every projects over the world is impossible or would require an army of testers (+ access to those projects). I discover new ways people use Vue and other libraries every day.
I tested regularly on a big 500+ components applications with many Vuex modules. It doesn't really matter? |
@gkatsanos This comes across as a profoundly rude question. If you have a 300 component application, I'd think you have the resources to create a minimal reproduction or downgrade your devtools until someone else does. Please be respectful to open source contributors |
@Akryum Would it be possible for one to downgrade to the 5.x branch of the extension? We have a non-functioning devtools extension and it is kind of blocking us. |
For those who encountering this problem, you may try one of the below options before there is a fix.
|
Read the docs |
thanks everyone, just uninstalled 6.x and installed the legacy. |
@gkatsanos You obviously don't want to help but just in case for anyone else seeing the comments in this thread, please post a reproduction in #1669. |
/
in the key
Version
6.0.4
Browser and OS info
firefox 96.0.3 (64-bit) / windows 10
Steps to reproduce
choose vuex modules drops the below error
What is expected?
show the vuex store
What is actually happening?
drops an error
The text was updated successfully, but these errors were encountered: