[Vuejs]-Type error in Type-Script with Vue.js and Databinding

1👍

Your data should be reactive in order to be bound correctly try to use ref to create your data property :

<script setup lang="ts">
import {ref} from 'vue'
import type {CompanyPojo} from "@/rest/restapi-companies";
import {createNewCompany} from "@/rest/restapi-companies";

const companyPojo = ref<CompanyPojo>({});

</script>

Leave a comment