You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to run storybook as a nuxt layer app?
I setup everything like in the guide, except that it's inside a layer app folder.
There are still a few other issues starting storybook from within the layer app folder that are already addressed in other issues here, but storybook starts running "npm run storybook" from the folder.
But when I start my whole app it seems to initialize storyboard all the time on root level.
Symptoms:
yields "📚 Storybook is not installed"
adds dependencies to root package.json
adds .storyboard folder with main.ts and preview.ts
Is there any example how I can use storybook as a nuxt layer app? Any ideas how to fix the problem?
I'm also facing similar issue when running the app from root with storybook set up to be layer-specific dependecies.
In my project I have other issues though:
the stuff installed by this step --storybook running init on root level dev run-- is outdated as mentioned in this issue: The command "npx storybook-nuxt init" adds not up to date deps to the project #841 (it was recommended in other issues here to update each installed packaged manually to latest because the "init" step - mentioned in the getting started guide - is not updated).
when running npm run dev from root level which doesn't have storybook, storybook seemed to be looping. It would detect no storybook installed and setup the module again and after it's done, to loop again and again. (I have multiple layers in this project and only 1 uses storybook, so I don't know it it's looping the same amount of layer, or just some initialization bug).
As of running storybook from layer itself, I have no issue as I run it directly from layer folder (I'm using npm workspace) using npm run storybook, or by npm run storybook -w storybook-layer (since I'm running from the context of storybook layer, I don't need to explicitly define --config-dir and no additional storybook dep init is happening)
Is it possible to run storybook as a nuxt layer app?
I setup everything like in the guide, except that it's inside a layer app folder.
There are still a few other issues starting storybook from within the layer app folder that are already addressed in other issues here, but storybook starts running "npm run storybook" from the folder.
But when I start my whole app it seems to initialize storyboard all the time on root level.
Symptoms:
Is there any example how I can use storybook as a nuxt layer app? Any ideas how to fix the problem?
layer package json:
Edit one of the problems seem to be that the config dir is derived only from nuxt root:
storybook/packages/nuxt-module/src/storybook.ts
Line 53 in c19c93c
The text was updated successfully, but these errors were encountered: