New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug with i18n and translation in component #703
Labels
to triage
This issue needs to be triaged
Comments
Start a new pull request in StackBlitz Codeflow. |
I can confirm this and tracked it down to this change: Not sure what to do about it though. Any idea? I'd be happy to contribute. |
Same problem. Fresh install of Nuxt + I18n + Histoire
|
juleshry
pushed a commit
to juleshry/histoire
that referenced
this issue
Apr 12, 2024
…viors remove useNuxtApp mock since it prevents some plugins to run (e.g. @nuxtjs/i18n). It fixes the issue histoire-dev#703 .
Open
9 tasks
Same problem here. Has someone manage to implement some kind of workaround? |
+1 |
10 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Hello,
First of all, thank you for building this project.
I'm working on a Nuxt project with i18n but I can't make
histoire
work correctly. I've been looking for the source of the problem and here's what I've discovered so far:@nuxtjs/i18n
is active, there anerror 500
displayed in the story iframe that saysCannot read properties of undefined (reading 'public')
. I think it happens on module i18n initialization because it doesn't know the Nuxt App context or something (I'm not sure).@nuxtjs/i18n
, there's an error when histoire is building that saysRollupError: Expected ';', '}' or <eof>
. I think this is due to translations 'in-component' using the<i18n></i18n>
tag.Reproduction
I have made a small project that reproduce the problem : https://stackblitz.com/edit/nuxt-starter-xfql3e?file=nuxt.config.ts
System Info
packages versions : - nuxt: 3.10.3 - @nuxtjs/i18n: 8.2.0 - histoire: 0.17.14 - @histoire/plugin-vue: 0.17.14 - @histoire/plugin-nuxt: 0.17.14
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: