storybook
storybook copied to clipboard
Storybook v7 - Error: Sorry, for now, you can not do this, please use a framework such as @storybook/react-webpack5
When running npx [email protected] init
Or any other 7 alpha release I get the following error:
Error: Sorry, for now, you can not do this, please use a framework such as @storybook/react-webpack5
A brand new project Vite with react ts template
i don't think vite is supported just yet - it doesn't have a framework. storybook 7 also includes several breaking changes that are not supported by @storybook/builder-vite
(as of v0.2.0-beta.2
).
esm support received some major updates, so i was hoping to use patch-package
to workaround some of the kinks, but after hitting a wall and checking out the wip on the framework-vite
branch, i'm thinking we have to submit some PRs haha, or wait for a release.
@shilman or @IanVS can you confirm?
That's right, although I hear it's coming very soon!
@humarkx Do you still encounter this? Storybook 7 now has vite support.
works now
npm create vite@latest
typescript
react
npx [email protected] init
work
npx [email protected] init --builder @storybook/builder-vite
not work
The flag is --builder=vite
, which should work hopefully. We should throw an error on bad values...
The flag is
--builder=vite
, which should work hopefully. We should throw an error on bad values...
with the --builder=vite flag it worked for me! Thanks!