storybook-nuxt
storybook-nuxt copied to clipboard
Versions since 0.2.1
Hey there. Can't speak for everyone, but for our project all versions since 0.2.1 didn't work.
0.2.5 just released without any commit or changelog in this repo, and it also doesn't build with brand new "RollupError: Expression expected" error.
Is this normal or are we doing something wrong?
For now we'll keep skipping versions
For now we'll keep skipping versions
I apologize for the inconvenience I had to force some changes to fix there is no proper changelog for now. I will cleanup later once I got to stable version
fwiw, I managed to get my storybook running using the from-0.2.1 branch, after I updated all dependencies.
additionally, I also had to insert this line (else storybook didnt understand my vue files at all):
--- a/packages/storybook-nuxt/src/preset.ts
+++ b/packages/storybook-nuxt/src/preset.ts
@@ -101,6 +101,7 @@
else {
// Handle the case where the plugin with name 'vite:vue' was not found
console.error('Plugin \'vite:vue\' not found in the array.')
+ plugins.push(vuePlugin())
}
baseConfig.plugins = plugins
extendedConfig = mergeConfig(config, baseConfig)
do you want me to PR that?
fwiw, I managed to get my storybook running using the
from-0.2.1branch, after I updated all dependencies. additionally, I also had to insert this line (else storybook didnt understand my vue files at all):--- a/packages/storybook-nuxt/src/preset.ts +++ b/packages/storybook-nuxt/src/preset.ts @@ -101,6 +101,7 @@ else { // Handle the case where the plugin with name 'vite:vue' was not found console.error('Plugin \'vite:vue\' not found in the array.') + plugins.push(vuePlugin()) } baseConfig.plugins = plugins extendedConfig = mergeConfig(config, baseConfig)do you want me to PR that?
i think this issue was already addressed in other commit, the history is not clean i'm sorry for that. you can open a PR i will review it that release a new tag.
i already released v0.2.5 you can try it.
I tried v0.2.5 already, for the record, I am talking about this issue:
[15:43:47] ERROR Internal server error: Failed to parse source for import analysis because the content contains invalid JS syntax. Install @vitejs/plugin-vue to handle .vue files.
Plugin: vite:import-analysis
File: xxxxxx/node_modules/nuxt/dist/app/components/nuxt-root.vue:15:27
manually adding that line in the node_modules folder is enough to fix it for me. its not an issue with my project since I get it in the playground too, maybe something broke again with newer nuxt 🤷 ill clean up my working tree and PR when I am home in a bit so you can take a look.
https://github.com/storybook-vue/storybook-nuxt/pull/95
I tried v0.2.5 already, for the record, I am talking about this issue:
[15:43:47] ERROR Internal server error: Failed to parse source for import analysis because the content contains invalid JS syntax. Install @vitejs/plugin-vue to handle .vue files. Plugin: vite:import-analysis File: xxxxxx/node_modules/nuxt/dist/app/components/nuxt-root.vue:15:27manually adding that line in the node_modules folder is enough to fix it for me. its not an issue with my project since I get it in the playground too, maybe something broke again with newer nuxt 🤷 ill clean up my working tree and PR when I am home in a bit so you can take a look.
still got the same error
this is after ur pr is merged. 0.2.5
0.2.5 doesnt include the PR yet
Okay thanks, will wait for the release
0.2.5 doesnt include the PR yet
I did pull ur pr yet the issue still present. Can u confirm? Thanks
I am running that branch with no issues at my end (other than the fact that it doesnt like lazy components)
New error for me in 0.2.6...
0.2.1 is the only version that works right now
New error for me in 0.2.6...
Could you please open a new issue (at https://github.com/nuxt-modules/storybook/) for this with more details. Thanks!
Closing as the original issue has been resolved.
