Skip to content
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

Failed to resolve extends base type after 1.1.0 #5

Closed
VicFleur opened this issue May 13, 2023 · 1 comment
Closed

Failed to resolve extends base type after 1.1.0 #5

VicFleur opened this issue May 13, 2023 · 1 comment

Comments

@VicFleur
Copy link

I'm getting an error on version 1.1.0 on Nuxt 3.4.3 which breaks the plugin. Everything seemed to be working fine on 1.0.11 with Nuxt 3.4.3.

[@vue/compiler-sfc] Failed to resolve extends base type.                                                                                                                                                            08:55:40
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.

this is related to NaiveConfig.vue, if I modify the extend as requested, the plugin works again

interface NaiveConfigProps
    extends /* @vue-ignore */ Omit<ConfigProviderProps, "themeOverrides" | "theme"> {
    themeConfig?: ThemeConfig;
}
@becem-gharbi
Copy link
Owner

Thanks for noticing this. Once i refreshed the lockfile, the error shows up. It's related to the package @vue/compiler-sfc v3.3.2 resolving this issue. I just released a patch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants