How to Fix Vuex Unknown Mutation Type Error

TL;DR

Double check you spelled it mutations: and not mutation:

Specifics

Error

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 🧠
© 2022, Built with Nuxt