Haixing-Hu / vue-datetime-picker

A Vue.js component implementing the datetime picker control using the Eonasdan's bootstrap datetime picker plugin.
http://haixing-hu.github.io/vue-datetime-picker/
MIT License
341 stars 77 forks source link

Template or render function not defined. #39

Closed pkimtani closed 3 years ago

pkimtani commented 6 years ago

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?

LiFaytheGoblin commented 6 years ago

I have the same problem.

fabiankaimer commented 6 years ago

Me too.

odera89 commented 6 years ago

Mee too :(

joacimjakobsen commented 6 years ago

Getting the same error here.

In my case html is not <vue-date-time-picker/> but <vue-datetime-picker>

LiensHuang commented 6 years ago

me too

tuvshinbatgeru commented 6 years ago

I think this library is not for vue 2.*.

imkimchi commented 6 years ago

Anybody resolved this issue?

fabiankaimer commented 6 years ago

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 :)