-
-
Notifications
You must be signed in to change notification settings - Fork 421
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dynamic component shows error for props with kebab-case #3765
Comments
#3750 is likely related. |
Actually my testing shows that it works the same in both 1.8.22 and 1.8.24 so maybe I'm missing something. Can you provide a repo that reproduces this issue? It looks like the type of FooBar or the project configuration might be relevant. |
FYI: I've been testing with this code since your example doesn't produce any errors in the project I've been using: <template>
<component :is="Foo" :stoke-width="'abc'" />
</template>
<script setup lang="ts">
import { defineComponent } from 'vue';
const Foo = defineComponent({
props: {
strokeWidth: { type: String, required: true },
}
});
</script> This produces and error in both Volar versions. |
I've set up an reproduction repo here: https://github.com/dvdmlln/vue-tsc-dynamic-component-props |
Same problem here, it works fine in 1.8.22 and no more in 1.8.24 |
May I ask, when can this fatal bug be fixed? |
You can but you won't get a specific answer. |
Hi,
since 1.8.24 Volar shows an error when using a dynamic component with an imported component object and a kebab-case required prop.
Example:
FooBar
component has a required propfooBar
. The following leads to an errorProperty 'fooBar' is missing in type
.Best regards
David
The text was updated successfully, but these errors were encountered: