How to Fix Vuex Unknown Mutation Type Error


Double check you spelled it mutations: and not mutation:



Despite basing my new vuex module off of another file that was working, I was getting an error in my console - [vuex] unknown mutation type:.

My Typo

When retyping the file setup, I had typed mutation: instead of mutations: - causing vuex to be unable to find my mutation!

  1. Too Long Didn't Read
🧪 Experiment 🧪 | 💥 Fail 💥 | 🧠 Learn 🧠
© 2024, Built with Nuxt