I am using Vue version 3.2 and TypeScript.
When I want to define my props like this:
<!-- 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>
When running the code, I get this error:

I searched a lot but did not find any results