Vuex: Unexpected token on mapMutations

Created on 22 Jan 2017  路  1Comment  路  Source: vuejs/vuex

Hi,

I use mapMutations in methods property and I have an error. My webpack can't recognise three dots.

...mapMutations([
    'deleteTodo'
]),

Most helpful comment

This is not related to Vuex.
Please make sure to enable to transform object rest spread operator for your transpiler.
For babel: https://babeljs.io/docs/plugins/transform-object-rest-spread/

>All comments

This is not related to Vuex.
Please make sure to enable to transform object rest spread operator for your transpiler.
For babel: https://babeljs.io/docs/plugins/transform-object-rest-spread/

Was this page helpful?
0 / 5 - 0 ratings

Related issues

taoeffect picture taoeffect  路  3Comments

fnlctrl picture fnlctrl  路  4Comments

weepy picture weepy  路  3Comments

Ge-yuan-jun picture Ge-yuan-jun  路  3Comments

visualjerk picture visualjerk  路  3Comments