Home

Issue: 1933

Missing requirements from the Vuex Store docs?

[issue link]

I just followed the instructions to Activate the Store, and it is not working for me. {{ $store.state.counter }} returns empty and @click="$store.commit('increment')" returns the error “unknown mutation type: increment”. Is there a minimum Nuxt version for this to work (I’m using 0.10.7). If not, what am I missing?

To be clear, the steps I have taken are to:

  1. Create store/index.js
  2. Add the example template code
This question is available on Nuxt.js community (#c1725)