Usage with vuex-class library
armenohanyan15 opened this issue · 8 comments
We are trying to migrate from the vue-property-decorator/vue-class-component to the vue-facing-decorator but facing issues while using it with vuex-class library. Particularly Getters and Actions from vuex-class are undefined in the class component
import { Component, Vue } from 'vue-facing-decorator'
import {Getter} from 'vuex-class'
@Component
export default class MyComponent extends Vue {
@Getter('getData') readonly data!: IData[]
}
In this case the Getter is not working, its showing undefined. Is there an compatibility issues between this repo and vuex-class decorators?
I have the same problem too
I can't find a solution
@armenohanyan15 Are you using vite or webpack? Also, what versions of vue, vuex-class, and vue-facing-decorator are you using?
@norayr15 @armenohanyan15 you should share your package.json (node dependencies / dev dependencies should be enough) to show what versions of these librairies you are using in your project
I also am curious on best practice for vuex and vue-facing-decorator.. It seems that I am having conflicts between vuex store and the components properties.