Create a Storybook Sandbox (Starter project)

Share this video with your friends

Send Tweet

NOTE: There is a bug in the sandbox command that may result in Storybook@8 (beta) to be installed.

To bypass this issue, use this command instead: npx storybook@latest sandbox --branch=main

This version of the command uses the main branch, which is currently the latest v7. My hope is that the versioned sandbox command is fixed by the time v8 goes out. Once resolved, the command in the video is preferred.

Launch into Storybook with a one-command setup using npx storybook sandbox. Instantly create a Storybook environment tailored to your preferred framework and language, perfect for immersive learning and exploration.

~ 10 months ago

The template for storybook@7 sandbox is storybook 8.0.0-alpha.9 Same thing if I specify 7.6.7

Michael Chan
Michael Chan(instructor)
~ 10 months ago

So sorry for this. I just confirmed with the storybook team that using versions on the sandbox is not currently functional.

Until v8 is merged to main, you can use this alternative:

npx storybook@latest sandbox --branch=main

This version of the command uses the main branch, which is currently the latest v7. My hope is that the versioned sandbox command is fixed by the time v8 goes out.

~ 10 months ago

Awesome, thanks :-)