Closed vis97c closed 1 week ago
Spotted the source of the issue. Using html as string within the json on the i18n block seems to be breaking the parsing of the block. Removing it solved the issue. Now I'm using a variable to define the html and using the locale where is needed only:
Environment
Reproduction
https://stackblitz.com/edit/bobbiegoede-nuxt-i18n-starter-3aas7r?file=pages%2Findex.vue
Describe the bug
Vite HMR fails with the following:
This is a project wide issue, not sure where the issue is coming from. But in a route if I remove the i18n block from the most inner route the error goes away. I tried to replicate that with no avail.
Doing some debugging I found this:
Additional context
For context I recently moved my locale from their own *.json file for each page to then import it via custom block src tag. To just include a single i18n block with the translations.
This was the before:
and imported them like this
Logs