question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ERR_STORE_NOT_PROVIDED when used with @nuxtjs/auth

See original GitHub issue

Hi,

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:

If I remove @nuxtjs/auth from nuxt.config.js, it works as expected.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:10
  • Comments:16 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
ralfschimmelcommented, Apr 20, 2020

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 and initializer). Only difference is that I had to use a @MutationAction. I was using a @Action which committed a mutation and that gave me above error (the error had nothing to do with the actual problem, as it seems).

1reaction
m2decommented, Jun 19, 2020

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 in nuxt.config.js under auth: { vuex: false }.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found