Subscribe on changes!

Generic components fail when used with `withDefaults`

avatar
May 11th 2023

Reproducible example:

<script setup lang="ts" generic="T">
const props = withDefaults(defineProps<{
    modelValue: T;
    title?: string;
}>(), {
    title: 'Hello',
});
</script>

Screenshot of the error:

screenshot

avatar
May 12th 2023

It happens to me too!

avatar
May 13th 2023

me too!

avatar
May 16th 2023

@jd-solanki No, this is a different issue from vuejs/core#8310.

avatar
May 16th 2023

@jd-solanki No, this is a different issue from vuejs/core#8310.

@xiaoxiangmoe is the same error as #8310

avatar
May 16th 2023

@jd-solanki @Anubarak After discussion with pikax, we update demo of #8310 . This is same error now.