[Vuejs]-Component is missing template or render function. at <App>

1👍

The two problems in your main.js file is that you imported App and router in braces. Use this syntax instead:

import App from './App.vue';
import router from "../router/router.js";

2👍

I think your component imports in the router maybe incorrect. You should not destructure the object during import.

Change:

import {HomePage} from "../views/home.vue";

To:

import HomePage from "../views/home.vue";
👤Gabe

0👍

the error is in the main.js file. You need to import App from ‘./App.vue’ like this:

 import { App } from "./App.vue";
👤hamza

Leave a comment