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

How to mock '$accessor' ? #273

Open
Sensey19 opened this issue Apr 21, 2022 · 0 comments
Open

How to mock '$accessor' ? #273

Sensey19 opened this issue Apr 21, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@Sensey19
Copy link

When I test my component where using $accessor from "nuxt-typed-vuex" library I get 'TypeError: Cannot read property '$accessor' of undefined':
Screenshot from 2022-04-21 11-24-38

index.vue file:
Screenshot from 2022-04-21 11-23-40

'@/store/post/index.ts' file :
Screenshot from 2022-04-21 11-26-08

I have tried a lot of ways to fix it but nothing helped. This #243 solution is not working as well. Does anyone know how to fix it?

@Sensey19 Sensey19 added the bug Something isn't working label Apr 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants