Storybook 7.0 and SvelteKit monorepos #20490
-
Hi, I have a question regarding storybook 7.0 and using it on SvelteKit monorepos. I've ported successfully another project (not monorepo) using SK1.0 and Storybook 7.0-beta.16. However, when I tried to make the same migration in a monorepo (several packages sharing the same storybook configuration in a folder at the root of the repo), it starts throwing out errors of My first though was that it was not fetching the correct Am I missing something here? The same setup worked before with storybook@6, but I'm not sure if now with the new framework field it requires additional setup. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi! Thanks for the question, and thanks for SvelteUI, you and the team are doing awesome work on that! As a way to QA 7.0 I actually planned to migrate SvelteUI to Storybook 7.0 to see where the rough edges were, but you beat me to it! I've played around a little with your branch, there's multiple issues going on.
Given the issues above, I think the best way forward right now is to modify your storybook scripts to be:
Changing CWD to the core package and running Storybook "from there". It might feel a bit hacky, but I think it mimics SvelteKit as close as possible, which is a good thing. This will also mean that the custom aliases in It doesn't fix everything though, as there's still issues with I'll keep digging into this when I have more time. |
Beta Was this translation helpful? Give feedback.
Hi! Thanks for the question, and thanks for SvelteUI, you and the team are doing awesome work on that! As a way to QA 7.0 I actually planned to migrate SvelteUI to Storybook 7.0 to see where the rough edges were, but you beat me to it!
I've played around a little with your branch, there's multiple issues going on.
@storybook/builder-vite
doesn't support supplying a custom path to the Vite config, which is what you want here, because it's not in the root but rather in the core package.svelte.config.js
w…