ERR_STORE_NOT_PROVIDED when used with @nuxtjs/auth
See original GitHub issueHi,
I followed instructions for Nuxt here. When I use an action from store I’m getting ERR_STORE_NOT_PROVIDED
. I created a minimal Code Sandbox for the error.
To see follow steps below:
- Open sandbox: https://codesandbox.io/s/intelligent-tree-k1l8o
- Open console
- Click button
If I remove @nuxtjs/auth
from nuxt.config.js, it works as expected.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:10
- Comments:16 (1 by maintainers)
Top Results From Across the Web
vue.js - When I use @nuxtjs/auth to login, it sends a request ...
I am using the @nuxtjs/auth' module of Nuxt.js for login authentication, but when I use the loginWith method, I get an error because...
Read more >Introduction - nuxt auth docs
The module authenticates users using a configurable authentication scheme or by using one of the directly supported providers.
Read more >@nuxtjs/auth-next - npm
Authentication module for Nuxt.js. Latest version: 5.0.0-1667386184.dfbbb54, last published: 2 months ago. Start using @nuxtjs/auth-next in ...
Read more >@nuxtjs/auth-next examples - CodeSandbox
Learn how to use @nuxtjs/auth-next by viewing and forking @nuxtjs/auth-next example apps on CodeSandbox.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
In case this helps anyone, took me a while to figure out and ended up with a working configuration.
Using
"@nuxtjs/auth": "^4.9.1",
"nuxt": "2.12.2",
and"vuex-module-decorators": "^0.16.1"
I got this working with the Nuxt typescript example (store-accessor
andinitializer
). Only difference is that I had to use a@MutationAction
. I was using a@Action
which committed amutation
and that gave me above error (the error had nothing to do with the actual problem, as it seems).Also ran into this issue today where
@nuxtjs/auth
caused a conflict. As a temporary workaround I disabled Vuex for the auth module which can be done innuxt.config.js
underauth: { vuex: false }
.