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.

Template or render function not defined.

See original GitHub issue

I installed the component as described in the doc

and used it this way inside a component:

import VueDateTimePicker from 'vue-datetime-picker' 

export default {
    name: "interaction-details",
    components: {
        VueDateTimePicker
    }
}

HTML: <vue-date-time-picker/>

But I am getting an error “Template or render function not defined” I tried using the component at global level as well but still the same error.

Can someone help me if I am doing something wrong here?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:9
  • Comments:8

github_iconTop GitHub Comments

7reactions
fabiankaimercommented, Jun 27, 2018

As AkilLis mentioned, this component doesn’t seem to work with Vue.js 2.x and it also seems as it is not supported by the developer anymore. I am using “vue-bootstrap-datetimepicker” (https://github.com/ankurk91/vue-bootstrap-datetimepicker) instead. Works perfectly fine for me 😃

0reactions
imkimchicommented, Jun 27, 2018

Anybody resolved this issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Vue template or render function not defined yet I am using ...
In my case, I was getting the error because I upgraded from Laravel Mix Version 2 to 5. In Laravel Mix Version 2,...
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 >
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 >
template or render function not defined when mounting a ...
The component is not displaying and in the console there is an error: Failed to mount component: template or render function not defined....
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