Replies: 1 comment 2 replies
-
Bump I'm also getting this error when trying to ssg prerender with the vue-i18n plugin. If I print out the
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using
vue-i18n 9.10.2
and@intlify/unplugin-vue-i18n 4.0.0
.In a setup function of a vue component I've used
useI18n()
.In the template I wrote:
{{ i18n.t('example') }}
If the translation key "example" is not defined or global defined, it works as expected.
But once I use a
<i18n>
block, I get the following error on SSR and ONLY on SSR. In the client it works as expected.It doesn't matter which language I define for the block or if it is global.
Wondering why there is no ticket according this issue. How can you go wrong?
These are the plugins in vite.config.ts:
I create the vue plugin with this code:
Beta Was this translation helpful? Give feedback.
All reactions