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

Vue Devtools not working #67

Closed
reynard80 opened this issue Jul 12, 2021 · 4 comments
Closed

Vue Devtools not working #67

reynard80 opened this issue Jul 12, 2021 · 4 comments

Comments

@reynard80
Copy link

I recently switched to class based Vuex modules with this package.
However, the Vuex tab of Vue Devtools doesn't seem to work anymore. It just shows the base state and no modules or mutations are recorded.

Is this a known issue or just my project?

Knipsel

@bodograumann
Copy link
Collaborator

I don’t think this can have anything to do with vuex-class-modules, as it is just a wrapper around vuex.
Could you please give the versions of vue, vuex and vue-devtools that you are using?
It could very well be that there is some incompatibility therein.
Beyond that, a minimal reproduction would be essential to even try to look at a possible issue.

@reynard80
Copy link
Author

reynard80 commented Jul 13, 2021

I understand. It would be strange if vuex-class-modules was the issue, but before I used vuex-module-decorators in the same project and this was working (but had other issues).

We use Vue 2.6.14, Vuex 3.6.2 and Vue Devtools 5.3.4 in the project.

Only thing I can think of which might be a problem is that the modules are extended from abstract classes, like this:

AbstractEntityStore extends VuexModule {
  ...
}

AbstractDataTableStore extends AbstractEntityStore {
  ...
}

UserEntityStore extends AbstractDataTableStore {
  ...
}

export default new UserEntityStore({ store, name: 'userEntity' })

As for reproduction, I will try to create a scaffolding project with just this construct and see if it works.

@bodograumann
Copy link
Collaborator

Inheritance can be problematic, if i remember correctly. Maybe check #20.

@reynard80
Copy link
Author

It actually seems to be working now, also with inheritance. I actually had some settings wrong for Vue Devtools.
Thanks for your reactions.

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

2 participants