JavaScript – Help me figure it out. A router was added to my application. And found the following error. Cannot read unspecified properties (read ‘$ createElement’)


  main.js 
 
  
     import Vue from 'vue'
     import App from './App.vue'
     import VueRouter from 'vue-router'
     import router from "./Router/Index"
     Vue.use(VueRouter)
     
     
     
     new Vue({
       router,
       render: h => h(App),
     }).$mount('#app', ) 
     
     
     
     
     Index.js 
     import VueRouter from 'vue-router'
     import Main from "@/Pages/Main";
     
     
     
     export  default new VueRouter({
     
         routes: [
             {
                 path:'/Main',
                 components: Main
             },
     
         ]
     
     }) 

I vue-router https://router.vuejs.org/en/installation.html#%D1%81%D0%BA%D0%B0%D1%87%D0%B8%D0%B2%D0%B0% Used D0% BD% D0% B8% D0% B5-% D0% BD% D0% B0% D0% BF% D1% 80% D1% 8F% D0% BC% D1% 83% D1% 8E-cdn.

Write a Comment