[Vuejs]-How to use .js file components in routes for a router

0👍

Your reference error comes from the word Home in the first line of Home.js. Start the Home component like this:

export default {
    name: "Home",
    ...

0👍

export default Home = {

remove the Home should work for you..
what i wrote above is how you write a separate routes.js file and the best practice for writing routes and importing components

Leave a comment