This repository has been archived by the owner on Dec 31, 2024. It is now read-only.
Vue-i18n arrays: Property does not exist on type 'never #1717
Labels
Status: Review Needed
Request for review comments
Reporting a bug?
We created a simple landing page that displays countries defined in a Vue-i18n
language.json
file. This works fine but we get the following TypeScript errors:It seems like the properties of a country are not found in the
.json
file. Although we did define theMessageSchema
to beenUS
, as described in the official documentation. For other strings in thelang.json
files, there are no errors, only with a list or array it does not seem to default toString
.Please find a CodeSandBox for testing here. Below you can find the most important files.
File 'en-US.json'
File '/boot/i18n.ts'
File 'LandingPage.vue'
This might be related to #91
Expected behavior
No TS errors
Reproduction
See this CodeSandBox for testing.
System Info
Screenshot
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: