Vue Router not working

Posted 4 months ago by mostafalaravel

Hello, I try to make router to my app , but I receive this error message :

[Vue warn]: Unknown custom element: <router-view> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

found in

---> <App> at src/App.vue

here the App vue :

  <div id="app">
    <!--<HelloWorld msg="Welcome to Your Vue.js App"/>




import './assets/css/main.css'

export default {
  name: 'app'

#app {


import Paginate from 'vuejs-paginate'

Vue.component('paginate', Paginate)

import Vue from 'vue'

import Router from 'vue-router'

import App from './App.vue'

import axios from 'axios'

import VueAxios from 'vue-axios'

import home from '@/components/home'

Vue.config.productionTip = false

new Vue({

    render: h => h(App),

Vue.use(VueAxios, axios)



export default new Router({
    routes: [
            path: '/',
            name: 'home',
            component: home


Please sign in or create an account to participate in this conversation.