Skip to content

store.subscribeAction is not a function #1695

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
davestewart opened this issue Feb 9, 2022 · 1 comment
Closed

store.subscribeAction is not a function #1695

davestewart opened this issue Feb 9, 2022 · 1 comment
Labels

Comments

@davestewart
Copy link

Version

6.0.3

Browser and OS info

Chrome 98

Steps to reproduce

Set a property $store on the Vue prototype:

Vue.prototype.$store = {}

What is expected?

I should be able to use a custom store without DevTools erroring

What is actually happening?

VueDevtools assumes this is a Vuex store (with subscribeAction) and this error appears when the page loads:

TypeError: store.subscribeAction is not a function
    at backend.js:4836:13
    at addPlugin (backend.js:2810:7)
    at async Object.<anonymous> (backend.js:2016:5)

I can add a no-op and it's fine, but I don't think devtools should be making assumptions about what $store may be in my app.

@davestewart
Copy link
Author

I can submit a PR if easier, but likely one likely of code...

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

No branches or pull requests

2 participants