[Vuejs]-Property not defined on the instance but references during render

0👍

data is what is bound in the template scope. It doesn’t look like you have data defined anywhere. You can even see this in the Microsoft Vue TypeScript example.

Use this:

export default class BookingTable extends Vue {
    data(): {
        return {
            bookings: [];
        }
    }
}

Alternatively it looks like you can use decorators to declare properties as well per this example in the same repository from above: HelloDecorator.vue

Leave a comment