Currently, I am utilizing Vue version 3.2 along with TypeScript.
Whenever I try to declare my props in the following manner:
<!-- AppButton.vue -->
<script lang="ts">
interface Iprops {
buttonType?: string;
size?: string;
disabled?: boolean;
loading?: boolean;
}
</script>
<script lang="ts" setup>
const props = defineProps<Iprops>();
</script>
Upon executing the code, I encounter the following error:
https://i.sstatic.net/thfCM.png
Despite my extensive searching, I have been unable to locate any solutions.