▸
Vue Core - PR #14758
read →Fixed silent dropping of valid runtime prop types in defineProps when a Vue ref-wrapper type appears in a union and the vue import cannot be resolved by the SFC compiler (e.g. the type lives in a separately-built consumed package). resolveTypeReference was throwing inside inferRuntimeType, the top-level catch collapsed the whole branch to UNKNOWN_TYPE, and the resulting filtering dropped real types like Array — producing "Invalid prop: type check failed" warnings at runtime for valid values. The fix catches the resolution failure locally inside the TSTypeReference case and adds built-in fallbacks for Ref, ShallowRef, ComputedRef, WritableComputedRef, MaybeRef<T>, and MaybeRefOrGetter<T>, mirroring existing handling for Promise / Date / Map. Closes #14729.
typescript · vue · compiler-sfc · open source