-
-
Notifications
You must be signed in to change notification settings - Fork 205
Open
Labels
to triageThis issue needs to be triagedThis issue needs to be triaged
Description
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:
- when the module
@nuxtjs/i18nis active, there anerror 500displayed 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). - if I disabled the module
@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.14Used Package Manager
npm
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion.
- The provided reproduction is a minimal reproducible example of the bug.
TJacoob, vinceglb, Riadz, PiotrWasak, LucasMRAPI and 2 moretinawng, SteinRobert, kstraszewski, Riadz, PiotrWasak and 2 more
Metadata
Metadata
Assignees
Labels
to triageThis issue needs to be triagedThis issue needs to be triaged