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

weepy picture weepy  路  3Comments

niallobrien picture niallobrien  路  3Comments

james-wasson picture james-wasson  路  3Comments

blocka picture blocka  路  4Comments

haoxins picture haoxins  路  4Comments