Skip to content

An error occurred in hook 'getInspectorState' registered by plugin 'org.vuejs.vue2-internal' with payload #2031

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

Closed
argentum-konstantinium opened this issue Mar 7, 2023 · 0 comments · Fixed by #2096

Comments

@argentum-konstantinium
Copy link

argentum-konstantinium commented Mar 7, 2023

Vue devtools version

6.5.0

Link to minimal reproduction

https://github.com/argentum-konstantinium/vue-devtools-bug

Steps to reproduce & screenshots

  1. Create project with vue 2 and vuex (for vue 3 this error is not actual)
  2. Create parent module with namespaced: false
  3. Create childModule with namespaced: true
  4. Open this in browser
  5. Open vue devtools and inspect child module in vuex

What is expected?

Success inspect child module in vuex

What is actually happening?

Vue devtools throw error:

image

backend.js:748 An error occurred in hook 'getInspectorState' registered by plugin 'org.vuejs.vue2-internal' with payload: Object

callHandlers @ VM2100 backend.js:748
callHook @ VM2100 backend.js:230
VM2100 backend.js:749 TypeError: Cannot convert undefined or null to object
    at Function.keys (<anonymous>)
    at formatStoreForInspectorState (VM2100 backend.js:5790:30)
    at VM2100 backend.js:5465:27
    at handler (VM2100 backend.js:725:16)
    at DevtoolsHookable.callHandlers (VM2100 backend.js:746:17)
    at DevtoolsApi.callHook (VM2100 backend.js:230:26)
    at async DevtoolsApi.getInspectorState (backend.js:445:21)
    at async sendInspectorState (backend.js:2644:44)

System Info

system: windows 11 (64 bit)
browser: chrome 110.0.5481.178 (64 bit)

Any additional comments?

No response

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

Successfully merging a pull request may close this issue.

1 participant