Vue.js – Component is missing template or render function

FOR vue-cli vue 3

render function missed in createApp.
When setting your app by using createApp function you have to include the render function that include App.

in main.js
update to :

FIRST
change the second line in javascript from:-

const { createApp } = Vue

to the following lines:

import { createApp,h } from 'vue'
import App from './App.vue'

SECOND

Change from :-

const app = createApp({})

to:

const app  = createApp({
    render: ()=>h(App)
});


app.mount("#app")

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)