Monaca Onsen UI Discord Chat Github Repo

onsenui + vuex ( Do not mutate vuex store state outside mutation handlers )



  • Hi

    I followed the code from [ Onsen UI for Vue Kitchensink example ]. I keep getting this and couldn’t solve for few days. I already read many questions on the internet.

    Here’s my source code on github.

    Thanks a lot for your time.



  • I got it.

    It’s because of wrong installation style of vuex.

    Wrong

    new Vue({
        store,
        render: h => h(App),
    }).$mount('#app')
    

    Correct

    new Vue({
        render: h => h(App),
        store: store,
    }).$mount('#app')