NuxtN
Nuxt9mo ago
4 replies
BinaryArtifex

[@vue/compiler-sfc] Failed to resolve extends base type.

ive consolidated common types within my components and shifted them all to a types folder where they're auto imported. these types are designed to be composable with consuming base types. however when attempting to extend base types i now get this error

If this previously worked in 3.2, you can instruct the compiler to ignore this extend by adding /* @vue-ignore */ before it, for example:
interface Props extends /* @vue-ignore */ Base {}
Note: both in 3.2 or with the ignore, the properties in the base type are treated as fallthrough attrs at runtime.


one of my types looks like the following, where all the
extends
interfaces are auto imported from the types folder.

export interface FormInputBaseProps extends AriaLabellingProps, AriaValidationProps, FocusableDOMProps { /* specific properties */ }


ive uninstalled and reinstalled everything, there's no third party libraries from my side being used in this implementation. surely this has to be a bug. am i honestly expected to add this
/* @vue-ignore */
hack to all my extended types?
Was this page helpful?