You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried vueCompilerOptions.strictTemplates and it works only on bound props.
// CustomButton.vue
<scriptsetuplang="ts">defineProps<{}>(); </script>
// AnotherComponent.vue
<template>
<!-- this reports errors -->
<custom-button :non-existent-props="'some value'" />
<!-- this is not -->
<custom-buttonnon-existent-prop="some value" />
</template>
I expected volar to report in both cases because it doesn't matter how values are passed to props. The only thing that matter is whether the prop exists or not.
I tried
vueCompilerOptions.strictTemplates
and it works only on bound props.I expected volar to report in both cases because it doesn't matter how values are passed to props. The only thing that matter is whether the prop exists or not.
Versions
vue: 3.2.45
typescript: 4.8.4
vue-tsc/volar: 1.0.9
The text was updated successfully, but these errors were encountered: