language-tools
language-tools copied to clipboard
🐛 BUG: Using Vue component with optional properties in Astro file cause type error
Describe the Bug
When I import a Vue component in an Astro file, it complains on optional properties when running astro check
This seems to happen from astrojs/[email protected]
Steps to Reproduce
- add a optional property to a
Vuecomponent
<script setup lang="ts">
const props = defineProps({
value: {
type: Number,
default: 0,
},
});
</script>
- import the component in
.astrofile without defining a value for the optional property
---
import Example from '../components/Example.vue';
---
<Example client:visible />
- run
astro check
Link to an reproducible example
@Princesseuh Is this a known issue? Any idea on how to deal with this?
I don't know, seems like a bug. I haven't investigated yet