johnsoncodehk / volar-starter

Full TypeScript support template for Vue 3 + Vite
74 stars 28 forks source link

With vue-i18n it gives types error of $t and $i18n usage #13

Open dhavalt091 opened 1 year ago

dhavalt091 commented 1 year ago

As soon as i enable/install Vue Language Features (Volar) in VS code, i get type errors in html wherever $t and $i18n is used.

` ` Above is my html.

And below is how i get errors/warnings by volar.

volar-html

What am i missing here?

DemocracyAndScience commented 4 months ago

yes , I have same error, 类型“CreateComponentPublicInstance<Readonly<ExtractPropTypes<{}>>, { isClient: typeof isClient; SocialMediaEnum: typeof SocialMediaEnum; ruleFormRef: typeof ruleFormRef; formData: typeof formData; rules: typeof rules; resetForm: typeof resetForm; submitForm: typeof submitForm; }, ... 17 more ..., {}>”上不存在属性“$t”。ts-plugin(2339)

image