Property '$t' does not exist on type '{ $: ComponentInternalInstance; $data: {}; $props: { style?: unknown; class?: unknown; ref?: VNodeRef | undefined; key?: string | number | symbol | undefined; ref_for?: boolean | undefined; ... 6 more ...; onVnodeUnmounted?: VNodeMountHook | ... 1 more ... | undefined; }; ... 10 more ...; $watch<T extends string | (...'.ts(2339) #3735

@Nick-Hopps

Description

I can affirm the $t method of vue-i18n has been registered onto app.config.globalProperties:

looks like volar fail to load type file for vue-i18n:

I try to add types manually to tsconfig.app.json, but still not working:

add declaration also useless:

  • vue: 3.3.4
  • vue-i18n: 9.2.2
  • volar: 1.8.22
  • vue-tsc: 1.8.22
  •