question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

I am using laravel elixer (webpack) in compiling this but i got this error. Did i missed something??? I am using v2

Vue.component('v-select', require('vue-select'))

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:14 (2 by maintainers)

github_iconTop GitHub Comments

24reactions
Johnathancommented, Feb 12, 2017

Getting the same issue using the latest version of Vue 2 and Laravel mix https://laravel.com/docs/5.4/mix#running-mix

Using default configuration.


EDIT - Should have just done what the docs said. Sorted now.

@jessiesiat instead of doing require(...) try

import vSelect from 'vue-select';
Vue.component( 'v-select', vSelect );
4reactions
Andrei0401commented, Jun 28, 2018

Please, try this var VSelect = require(‘vue-select/dist/vue-select’).VueSelect;

Read more comments on GitHub >

github_iconTop Results From Across the Web

Vue template or render function not defined yet I am using ...
This error: [Vue warn]: Failed to mount component: template or render function not defined. You're getting because of a certain problem that's ...
Read more >
[Vue warn]: Failed to mount component: template or render ...
I have no issues, when I run the project, but I just setup the vue-test-utils using Vue Cli 4 , and tried my...
Read more >
Failed to mount component: template or render function not ...
A render function takes an argument which itself is a function. This function creates you a vnode. The render function expects you to...
Read more >
Laravel + Vue.js - template or render function not defined.
Hi, I am trying to use vue-router links to load my home and about.vue but I get this error: app.js:64725 [Vue warn]: Failed...
Read more >
[SOLVED] Component is Missing Template Or Render ...
The “Component is missing template or render function” warning occurs when you import a component and add it to the markup, but the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found