How do I build Storybook inside starter ui package? #374
-
What version of Turborepo are you using?1.0.17 What version of Node are you using?v14.17.6 What version of Yarn are you using?1.22.4 Describe the BugCan't run Expected BehaviorRunning build-storybook from ui package works fine. yarn --cwd packages/ui build-storybook Running build-storybook using turbo gets stuck forever. yarn build-storybook To ReproduceClone example repo git clone https://github.com/fibonacid/turborepo-build-storybook-bug
cd turborepo-build-storybook-bug Install dependencies yarn install Run command yarn build-storybook |
Beta Was this translation helpful? Give feedback.
Replies: 15 comments 9 replies
-
I'm experiencing the same in my project. Likewise with |
Beta Was this translation helpful? Give feedback.
-
If you put the start-storybook task in the turbo config with caching disabled works |
Beta Was this translation helpful? Give feedback.
-
I have the following in my pipeline:
And it still seems to hang with the script:
Is that what you meant @fibonacid ? |
Beta Was this translation helpful? Give feedback.
-
Facing same issue. The thread is getting stuck at the start-storybook script, however running fine incase we gone down into the target folder. |
Beta Was this translation helpful? Give feedback.
-
Yeah that works for me. btw, the storybook versions i'm using are "@storybook/addon-actions": "^6.4.9",
"@storybook/addon-essentials": "^6.4.9",
"@storybook/addon-links": "^6.4.9",
"@storybook/react": "^6.4.9", |
Beta Was this translation helpful? Give feedback.
-
@crutchcorn Can you try to see if you can run start-storybook with turbo using the example repo i created? |
Beta Was this translation helpful? Give feedback.
-
I'm facing the same issue with a big storybook in one of my company's monorepo. I also have the same problem with another package that is built with webpack (I had to remove the Could it be related at how turborepo handle stdout / stderr? My three commands outputs a lot of text to the screen. |
Beta Was this translation helpful? Give feedback.
-
Hey @jaredpalmer! Why was this moved to discussions? Storybook is going to be a pretty popular tool to integrate with and currently the out-of-box build script causes Turborepo to freeze. |
Beta Was this translation helpful? Give feedback.
-
I would even go one step further and say that for projects large enough to
need monorepo’s it’s practically standard.
On Thu, 23 Dec 2021 at 18:00, Kyle Holmberg ***@***.***> wrote:
Hey @jaredpalmer <https://github.com/jaredpalmer>! Why was this moved to
discussions? Storybook is going to be a pretty popular tool to integrate
with and currently the out-of-box build script causes Turborepo to freeze.
—
Reply to this email directly, view it on GitHub
<#374 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABIQIGXCLLUNDGGR2EY3O4DUSNPSZANCNFSM5KO24GLA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
--
…_________________
*Chris Brown*
*CEO*
***@***.*** ***@***.***>*
*Schedule a Call <https://calendly.com/mangomap-chris/intro/>*
*LinkedIn <https://uk.linkedin.com/in/chrisincambo>*
|
Beta Was this translation helpful? Give feedback.
-
Move this to issues, please |
Beta Was this translation helpful? Give feedback.
-
This is now being tracked in #422 |
Beta Was this translation helpful? Give feedback.
-
Ahead of a fix, you could try the following flags w/your storybook commands: "scripts": {
"storybook": "start-storybook --ci -p 6006",
"build-storybook": "build-storybook --quiet -o dist"
} The important bits are |
Beta Was this translation helpful? Give feedback.
-
Update: We now have a design system example using:
https://github.com/vercel/turborepo/tree/main/examples/design-system |
Beta Was this translation helpful? Give feedback.
-
Storybook 6.5 does not seem to be hitting the cache. I followed config from the design system exactly but it's missing the cache every time I build. |
Beta Was this translation helpful? Give feedback.
This is now being tracked in #422