Closed as not planned
Description
As seen below the property "something" does not get suggested on the OptionsAPIComponent
.
Also no reported error on either even though they're missing the required property.
To reproduce, use below code. I set up a project with npm create vue
and no to everything except eslint+prettier, then add the components.
<script>
import OptionsAPIComponent from './OptionsAPIComponent.vue'
import CompositionAPIComponent from './CompositionAPIComponent.vue'
export default {
components: {
OptionsAPIComponent,
CompositionAPIComponent
}
}
</script>
<template>
<OptionsAPIComponent />
<CompositionAPIComponent />
</template>
<template>
<div>{{ something }}</div>
</template>
<script>
export default {
props: {
something: {
type: String,
required: true
}
}
}
</script>
<script setup>
defineProps({
something: {
type: String,
required: true
}
})
</script>
<template>
<div>{{ something }}</div>
</template>