Subrata Sarkaron Stack Overflow • Recommends
I am referring link to this video to build my first Vuex application. This is a 2018 tutorial so my main.js looks a bit different. I am using Vue 3.0.2 (as shown in Vue developer tool).
This is what my main.js looks:
import { createApp } from 'vue'
import App from './App.vue'
createApp(App).mount('#app')
So, I made changes to this file in order to match what is in the tutorial:
import Vue from 'vue';
import App from './App.vue'
new Vue({
render: h => h(App)
}).$mount("#app");
But this gives me the following console error:
Uncaught TypeError: vue__WEBPACK_IMPORTED_MODULE_4__.default is not a constructor
I ignored it and went ahead with the tutorial. According to the tutorial I created s…