【发布时间】:2021-11-02 06:46:52
【问题描述】:
我在 typescript 中使用 nuxtjs/i18n 并且我在 TS config 中添加了它的 types :
{
"compilerOptions": {
"types": [
"@nuxt/types",
"@nuxtjs/i18n",
]
}
}
但是在我想使用的组件中
this.$i18n.locales
我有这个错误
那么,如何修复 @nuxt/i18n 的类型错误?
【问题讨论】:
标签: typescript vue.js nuxt.js vue-i18n nuxt-i18n