Notice: The Monaca & Onsen UI Community Forum is shutting down.
For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.
Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.
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')