LoginSignup
0
0

More than 1 year has passed since last update.

ERR_ACTION_ACCESS_UNDEFINED: Are you trying to access this.someMutation() or this.someGetter inside an @action? That works only in dynamic modules.

Posted at

モジュール の @Action{ rawError: true }を指定する。

@Action({ rawError: true })
doSomething() {
}

これを指定しないと、ライブラリデフォルトのエラー(タイトルのやつ)を出すらしい...

もう一つよくあるエラー ERR_STORE_NOT_PROVIDED

ほかのモジュールで vuex を使っていると競合してエラーを吐くらしい。
自分の場合は、認証に使っているモジュールが原因だったので、
nuxt.config.js の auth に以下を追加しました。

nuxt.config.js
auth: {
  someOptions: {
  },
  vuex: false // <- これを追加
},

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0