NuxtN
Nuxt5mo ago
43 replies
hiimmox

Various "Failed to resolve extends base type" when extending interfaces and using them as props

This is new in Nuxt 4.1 with Vite rolldown

I have something like this:

interface Props extends Omit<SomeInterface, 'createdAt' | 'editedAt' | 'category'> {
createdAt: Date | string;
editedAt?: Date | string | null;
order: number;
summary?: string;
}

And Im getting errors like:

 Pre-transform error: [@vue/compiler-sfc] Failed to resolve extends base type.                                                                                      11:26:47 AM
If this previously worked in 3.2, you can instruct the compiler to ignore this extend by adding /* @vue-ignore */ before it, for example:


Any ideas? Is this not valid in Vue?
Was this page helpful?