You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I want access vueApp.VUE_I18N.global.t or vueApp.VUE_I18N.global.locale it works only when I run npm run dev. In production mode it gives "Cannot read properties of undefined (reading 'global')" error.
My dependencies:
"@intlify/nuxt3": "^0.2.3",
"nuxt": "3.0.0-rc.6",
The text was updated successfully, but these errors were encountered:
I'm using nuxt 3.0.0-rc.11 and @intlify/nuxt3 0.2.4. Same issue.: [unhandledRejection] Cannot read properties of undefined (reading '$i18n')
Can not deploy or generate static site.
Update:
I resolved my issue using: import { useI18n } from 'vue-i18n'
If I want access vueApp.VUE_I18N.global.t or vueApp.VUE_I18N.global.locale it works only when I run npm run dev. In production mode it gives "Cannot read properties of undefined (reading 'global')" error.
My dependencies:
"@intlify/nuxt3": "^0.2.3",
"nuxt": "3.0.0-rc.6",
The text was updated successfully, but these errors were encountered: