nathanreyes / v-calendar

An elegant calendar and datepicker plugin for Vue.
https://vcalendar.io
MIT License
4.4k stars 862 forks source link

[Vue warn]: Error in render: "TypeError: e.component is not a function" #429

Open olehpatrushev opened 5 years ago

olehpatrushev commented 5 years ago

I am trying to install v-calendar in my project and got this: App.vue

<template>
    <div id="app">
        <v-calendar />
    </div>
</template>

<script lang="ts">
    import {Component, Vue} from 'vue-property-decorator';
    import VCalendar from 'v-calendar';

    @Component({
        components: {
            VCalendar
        },
    })
    export default class App extends Vue {
    }
</script>

vue >>> 3.11.0 v-calendar >>> 1.0.0-beta.20

Выделение_002

olehpatrushev commented 5 years ago

I've changed my code and its works!

<script lang="ts">
    import {Component, Vue} from 'vue-property-decorator';
    import VCalendar from 'v-calendar';

    Vue.use(VCalendar);

    @Component({
        components: {
            HelloWorld
        },
    })

    export default class App extends Vue {
    }
</script>
Mohit-Ak commented 4 years ago

<v-date-picker v-model='date' :select-attribute='selectAttribute' is-inline> </v-date-picker> import VDatePicker from 'v-calendar'; export default { name: 'Ba_Toll_Mileage', data () { return { date: new Date(), selectAttribute: { dot: true } }, components: { BasicSelect, VDatePicker } } image