Template or render function not defined.
See original GitHub issueI 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:
- Created 6 years ago
- Reactions:9
- Comments:8
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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 😃
Anybody resolved this issue?