lepikhinb / laravel-typescript

MIT License
387 stars 46 forks source link

Vetur Cannot find namespace 'App'.Vetur(2503) #8

Open andreaspabst opened 2 years ago

andreaspabst commented 2 years ago

Typescript, Vue 3 and my app are working well. But vetur is complaining

Cannot find namespace 'App'.Vetur(2503

Component.vue

<script lang="ts">
import { defineComponent, PropType } from "vue";

export default defineComponent({
    props: {
        product: {
            type: Object as PropType<App.Models.Product>,
            required: true
        }
    },
    setup() {

    }
});
</script>