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

Can't run the plugin due to TypeError: Cannot convert undefined or null to object #60

Open
omnichronous opened this issue Oct 7, 2023 · 0 comments

Comments

@omnichronous
Copy link

omnichronous commented Oct 7, 2023

Thank you for this tool, it's been sorely needed. 🙏 I'm having trouble getting it to run though, maybe you could help?

I've implemented Colada in my Nuxt 3 app like this:

import Colada, { PiniaColadaPlugin } from 'colada-plugin'

export default defineNuxtPlugin((nuxtApp) => {
  useNuxtApp().$pinia.use(PiniaColadaPlugin)
  nuxtApp.vueApp.use(Colada)
})

Then with the browser extension installed I go into my app and switch to the Colada tab in Vue Dev Tools. It doesn't load at all and I get this set of errors at least twice:

An error occurred in hook 'getInspectorTree' registered by plugin 'colada-plugin' with payload:
TypeError: Cannot convert undefined or null to object
    at Function.values (<anonymous>)
    at getCurrentStores (colada-plugin.esm-browser.js:2870:23)
    at addPiniaStoreLabels (colada-plugin.esm-browser.js:2877:27)
    at colada-plugin.esm-browser.js:3049:17
    at handler (backend.js:725:16)
    at DevtoolsHookable.callHandlers (backend.js:746:17)
    at DevtoolsApi.callHook (backend.js:230:26)
    at async DevtoolsApi.getInspectorTree (backend.js:433:21)
    at async sendInspectorTree (backend.js:2633:21)
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

No branches or pull requests

1 participant