stories.json #12336
-
Hello, I am trying to use storybook composition by hosting the storybooks in google cloud storage. I am however getting an error where it looks for a |
Beta Was this translation helpful? Give feedback.
Replies: 10 comments 62 replies
-
You can generate the |
Beta Was this translation helpful? Give feedback.
-
metadata.json also fails to be created. npx sb extract unfortunately does not resolve the issue. |
Beta Was this translation helpful? Give feedback.
-
I will note though that this builds to
|
Beta Was this translation helpful? Give feedback.
-
Just created a pull request to address this discussion in here. If all parties involved in this discussion are ok i would love to get some feedback in the pull request to see if you're all ok with it, so that we can merge it, or continue to work on it. Stay safe all of you |
Beta Was this translation helpful? Give feedback.
-
Is it correct that Anyway, trying to do info connecting to: http://localhost:43277/iframe.html
info installing puppeteer...
TimeoutError: waiting for function failed: timeout 30000ms exceeded
at new WaitTask (/home/runner/.npm/_npx/4034/lib/node_modules/sb/node_modules/puppeteer-core/lib/DOMWorld.js:549:28)
at DOMWorld.waitForFunction (/home/runner/.npm/_npx/4034/lib/node_modules/sb/node_modules/puppeteer-core/lib/DOMWorld.js:454:12)
at Frame.waitForFunction (/home/runner/.npm/_npx/4034/lib/node_modules/sb/node_modules/puppeteer-core/lib/FrameManager.js:657:28)
at Page.waitForFunction (/home/runner/.npm/_npx/4034/lib/node_modules/sb/node_modules/puppeteer-core/lib/Page.js:1141:29)
at read (/home/runner/.npm/_npx/4034/lib/node_modules/sb/node_modules/@storybook/cli/dist/extract.js:30:14)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async extract (/home/runner/.npm/_npx/4034/lib/node_modules/sb/node_modules/@storybook/cli/dist/extract.js:87:18) Any ideas @shilman | @ndelangen ? |
Beta Was this translation helpful? Give feedback.
-
Has anyone gotten |
Beta Was this translation helpful? Give feedback.
-
Setting up
When you reload the page if you're lucky enough you can see your stories, but most of the time you'll see this message |
Beta Was this translation helpful? Give feedback.
-
Trying my luck here as I spent the whole afternoon trying to find a good explanation on how to setup Storybook Composition without success. We're splitting our internal UI library into a monorepo and would like to use composition to put all the separate package stories into one unified Storybook. Basically we have the following structure:
Where we'd like I'm on the latest version (6.5.9) and still struggling to understand what the steps actually are. I've added the Could anyone help me understand what I should be doing instead? This is really blocking us at work right now. |
Beta Was this translation helpful? Give feedback.
-
I had also had problems with running 2 static storybook pages in the same docker container using nginx to server both. I ended up copying the stories.json from sub-book as a static file in main-book.
Build Steps
staticDirs: [
{ from: '../../sub-book/storybook-static/stories.json', to: '/main-book/stories.json' },
],
refs: {
platform: {
title: 'sub-book',
url: '/sub-book',
},
}
COPY ./main-book/storybook-static /usr/share/nginx/html/main-book
COPY ./sub-book/storybook-static /usr/share/nginx/html/sub-book Seems abit like a roundabout way but by copying the Hopefully this is helpful for someone. |
Beta Was this translation helpful? Give feedback.
-
Hey folks. Is there any way to make
And when I run this composed storybook
Also |
Beta Was this translation helpful? Give feedback.
It's now called
index.json
and you can generate it by callingstorybook build
orstorybook index
(much faster because it only generates the index file and doesn't build the rest of the Storybook)Edit: If you don't need the file on disk it's also served by
storybook dev