Closed clarkdo closed 7 years ago
Is there any plan to fix it?
The same error. Actions do not work for me at all, no matter with namespace or without.
Could you provide self-contained reproduction via jsfidde, codepen, github repo or so on?
@ktsn I created repo https://github.com/dimamarksman/vue-vuex-class-test Please take a look.
Fixed via vue-class-component v6.1.0
@ktsn Thank you!
When use Action with namespace, page will throw "TypeError: Cannot redefine property: ..."
Part of codes like blow:
According to my research, after vuex-class defined the actions on vm, vue "initMethods" will define all methods onto vm.
And then vue-class-component method '_init' may redefine them again, so the error occurred.
Does this have any solution or pr?