Open kosratdev opened 4 years ago
I'm getting this to
I'm using Nuxt and I've used vuex-module-decorators
with actions, mutations, etc, and It was working right. I've included the nuxt/auth-next
to the project and the ERR_ACTION_ACCESS_UNDEFINED error starts to happen. If I remove the dependency then everything works right again.
I think there are two paths to initialize the store, some one should be affecting the other one. Still, I don't know what to do.
Some thing in your code went wrong and thrown an error , @Action caught it and thought that you were using some mutation or getter , use try/catch to catch your own error before @Action did
Some thing in your code went wrong and thrown an error , @action caught it and thought that you were using some mutation or getter , use try/catch to catch your own error before @action did
nope, even with console.log inside of @Action with no mutation, the console.log does not fire. This seems to be a new bug as this did not happen before.
Some thing in your code went wrong and thrown an error , @action caught it and thought that you were using some mutation or getter , use try/catch to catch your own error before @action did
nope, even with console.log inside of @action with no mutation, the console.log does not fire. This seems to be a new bug as this did not happen before.
try Action({ rawError : true }) options ,and look what comes out
@kennymalac and all others with this problem. Can confirm this issue.
With
"@nuxtjs/auth-next": "5.0.0-1618898588.9655d0e",
and
"vue-property-decorator": "^9.1.2"
and
"nuxt-property-decorator": "^2.9.1"
you can go to your nuxt.config.js file and auth: { vuex: false }
to fix this weird issue. No idea why it is happening tho : ]
I always use vuex actions to send requests via
axios
and then if the request response needs to be stored in the state I will mutate it if not I will return the response. I have used Vuex before with the above strategy without any errors but when I use this library it errors with the following error message: