Skip to content

vuex unknown action type #1259

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
hjJunior opened this issue May 7, 2018 · 1 comment
Closed

vuex unknown action type #1259

hjJunior opened this issue May 7, 2018 · 1 comment

Comments

@hjJunior
Copy link

hjJunior commented May 7, 2018

Version

3.0.1

Reproduction link

I tried to reproduce here, but my code is a little different, I'm using by npm
https://jsfiddle.net/sgwe6qde/4/

Steps to reproduce

Call to action from store module

What is expected?

I expected the function to be executed

What is actually happening?

I'm getting the error saying 'unknown action type: matriculas/fetchMatriculaTab'


I tried to search about it on web, and I solve to put namespaced: true, but I keep got this error,
I also have tried to use mapAction in another way
...Vuex.mapActions('matriculas', ['fetchMatriculaTab'])
So at this way, I get error saying 'module namespaec not found'

@hjJunior
Copy link
Author

hjJunior commented May 7, 2018

UPDATE

Searching here, I found another example, and so I just changed to
...Vuex.mapActions(['fetchMatriculaTab']) and else worked!

Thanks to #855 (comment)

@hjJunior hjJunior closed this as completed May 7, 2018
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

1 participant