H
H
he he2017-02-13 00:44:07
webpack
he he, 2017-02-13 00:44:07

Babel, webpack, laravel-mix...?

I can’t fix such a thing (I’ve been looking for a solution for two hours now :c ):
Tyk
UPD
app.js

import Vue from 'vue'
import store from './store/store.js'
import mapState from 'vuex'

new Vue({
    computed: {
        ...mapState({
            userStore: state => state.userStore
        })
    }
});

store.js
import Vue from 'vue';
import Vuex from 'vuex';

Vue.use(Vuex);

const state = {
    alo: false
}

const mutations = {
    change_bool (state, value) {
        state.alo = value;
    }
}

const action = {
    changeState: ({commit}, value) => {
        commit('change_bool', value);
    }
}

export default {
    state, mutations, action
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rikcon, 2017-02-13
@Rikcon

In the file E:/OpenServer/domains/roulette/resources/assets/app.js
11 is the line ...mapState({
Are these three dots in the code?
If so, delete them, and everything will work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question