Open juleshry opened 3 months ago
Start a new pull request in StackBlitz Codeflow.
I can confirm this and tracked it down to this change: https://github.com/nuxt-modules/i18n/pull/2828
Not sure what to do about it though. Any idea? I'd be happy to contribute.
Same problem. Fresh install of Nuxt + I18n + Histoire
"dependencies": {
"@nuxtjs/i18n": "^8.3.0",
"nuxt": "^3.11.1",
"vue": "^3.4.21",
"vue-router": "^4.3.0"
},
"devDependencies": {
"@histoire/plugin-nuxt": "^0.17.15",
"@histoire/plugin-vue": "^0.17.15",
"histoire": "^0.17.15"
}
Same problem here. Has someone manage to implement some kind of workaround?
+1
please take care of this i dont want to fork @letoast repo xD and i want to deploy our component documentation :)
please take care of this i dont want to fork @letoast repo xD and i want to deploy our component documentation :)
TBH I'm going to try out nuxt storybook and see if everything works there.
Having the same issue. As mentioned https://github.com/histoire-dev/histoire/issues/703#issuecomment-2025195493 - downgrading @nuxtjs/i18n
to the version below 8.0.2
removed the error for me.
Would be nice to get some followup on this though.
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
Used Package Manager
npm
Validations