[vuex] unknown mutation type / unknown action type Vue Origin: On your device OSI layer 7 · Application Last updated 5 Nov 2026

Vuex: [vuex] unknown mutation type: SET_USER / [vuex] unknown action type: fetchUser

commit/dispatch was called with a name that isn't registered in the store (or its module namespace).

Exact message you may see [vuex] unknown mutation type: SET_USER[vuex] unknown action type: fetchUser[vuex] unknown getter: x[vuex] module namespace not found in mapState(): user/unknown mutation type
Seen on: Vue

Meaning

Check the exact name, module namespacing (user/SET_USER when namespaced: true), that the module is registered, and typos. In components mapMutations("user", [...]) helps. Vuex 3/4 is legacy; Pinia is the recommended store.

Common causes

  • Typo in mutation/action name
  • Namespaced module needs module/name
  • Module not registered
  • Calling mutation via dispatch (or reverse)
  • Hot-reload dropping modules

⚡ Quick fix

  1. Use store.commit("user/SET_USER", payload) for namespaced modules
  2. Register modules in new Vuex.Store({ modules: { user } })
  3. Verify names with Vue devtools

Detailed fix by platform

Vue

  1. this.$store.commit("user/SET_USER", user)

How to diagnose

  1. Name — Exact?
  2. Namespace — Prefixed?
  3. Module — Registered?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: On your device. Errors that are often confused with or caused by this one (click to open):

Avoid mutating a prop directly — Vue: [Vue warn]: Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders (Vue)Avoid mutating a prop…Error: [vuex] do not mutate vuex store state outside mutation handlers — Vuex (strict mode): Error: [vuex] do not mutate vuex store state outside mutation handlers. (Vue)Error: [vuex] do not …Failed to resolve component — Vue: [Vue warn]: Failed to resolve component: x (Vue)Failed to resolve com…getActivePinia() was called but there was no active Pinia — Pinia: Error: [🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"? (Vue)getActivePinia() was …Nuxt 404: Page not found (route/file naming) — Nuxt: 404 Page not found: /blog/my-post / [Vue Router warn]: No match found for location with path (Vue)Nuxt 404: Page not fo…Nuxt: Failed to fetch dynamically imported module (after deploy) — Nuxt: [nuxt] error caught during app initialization TypeError: Failed to fetch dynamically imported module / Loading chunk failed (Vue)Nuxt: Failed to fetch…Nuxt/Vite: Failed to resolve import "~/..." or "@/..." — Nuxt: [vite] Internal server error: Failed to resolve import "~/components/Foo.vue" from "pages/index.vue". Does the file exist? (Vue)Nuxt/Vite: Failed to …[vuex] un…

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.