Replies: 1 comment 4 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.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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