Skip to content

npx sb extract gives timeout error #15141

Answered by ndelangen
TomWebbio asked this question in Help
Discussion options

You must be logged in to vote

@TomWebbio You have to give the sb extract command to location or url of where storybook is to be found, and where to place stories.json:

Where it's hosted:

npx sb extract http://localhost:6006/iframe.html ./stories.json

Where a storybook-static is located:

npx sb extract ./storybook-static

We're supposedly checking if these values are empty:

if (input && targetPath) {
const [location, exit] = await useLocation(input);
const data = await read(location);
await writeFile(targetPath, JSON.stringify(data, null, 2));
await exit();
} else {
throw new Error(
'Extract: please s…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@TomWebbio
Comment options

@ndelangen
Comment options

Answer selected by TomWebbio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment