Answers for "Failed to mount component: template or render function not defined. vue.js"

1

Failed to mount component: template or render function not defined.

//require('./bootstrap');
window.axios = require('axios');
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';

window.Vue = require('vue');
import Vue from 'vue'

Vue.component('dictionary-index',  () => import('./components/DictionaryIndex.vue'));

Vue.component('dictionary-create',  () => import('./components/DictionaryCreate.vue'));

Vue.component('dictionary-cat',  () => import('./components/DictionaryCategory.vue'));

const app = new Vue({
    el: '#app',
});
Posted by: Guest on September-18-2021
0

app.js:38650 [Vue warn]: Failed to mount component: template or render function not defined

Vue.component('form-component', require('./components/FormComponent').default);
Vue.component('gratitude-pop', require('./components/GratitudePop').default);//..etc..etc
//adding .default did the trick with laravel and vue
Posted by: Guest on January-19-2021

Code answers related to "Failed to mount component: template or render function not defined. vue.js"

Browse Popular Code Answers by Language