Open FlorientPlouvin opened 2 hours ago
Would you be able to provide a reproduction? 🙏
A small repository for reproduction https://github.com/FlorientPlouvin/Reproduction-i18n
I haven't checked it locally yet, but you should change any module augments from @vue/runtime-core
to vue
, such as the one here https://github.com/FlorientPlouvin/Reproduction-i18n/blob/main/plugins.d.ts should be like this instead:
declare module "vue" {
interface ComponentCustomProperties {
$device: Device;
$breakpoints: {
isMobile: boolean;
isTablet: boolean;
isDesktop: boolean;
isPortable: boolean;
current: string;
};
}
}
Augmenting @vue/runtime-core
breaks other correct augmentations.
Environment
Build Modules: -
Reproduction
My package json :
Describe the bug
Just update to nuxt 3.13.2 (started form 3.12.2) and vs-code give me this error :
Property '$t' does not exist on type 'CreateComponentPublicInstanceWithMixins<ToResolvedProps<{ slides: ISlider[]; class?: string | undefined; sizeClass?: string | undefined; hasGradient?: boolean | undefined; }, {}>, { ChevronLeftIcon: typeof ChevronLeftIcon; ChevronRightIcon: typeof ChevronRightIcon; userStore: typeof userStore; width: typeof width; p...'
When I want to build my project (with nuxt build), it give me the same error, but no problem in dev mod. I also see my translation in dev mod.
Additional context
I tried to create a
vue.d.ts
file and put this inside :Yes the
$t
error disapear, but now every emit or called function (in Pinia for exemple) is now an implicit any and building not working.Logs
No response