Storybook 6.3 + Vite support?
See original GitHub issueStorybook 6.3 introduced Vite support. Vite replaces webpack for us in our toolchain, greatly improves build speed, and works great with Storybook as of 6.3.
We’ve been running creevey for some time on local machines and in CI, it works well for us. When I try to run creevey with this new Vite setup I get this error:
[CreeveyWebpack]: Starting with pid 46200
[FAIL:46200] TypeError: builder.overridePresets is not iterable
at getWebpackConfigForStorybook_6_2 (/Users/adi/Documents/Projects/Terminal2/node_modules/creevey/lib/server/webpack/index.js:180:94)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async Object.compile [as default] (/Users/adi/Documents/Projects/Terminal2/node_modules/creevey/lib/server/webpack/index.js:247:34)
I could be wrong but from these errors I’m getting it looks like creevey depends on the webpack configuration in Storybook. Will or does creevey support the new Vite features for Storybook?
Issue Analytics
- State:
- Created 2 years ago
- Comments:5
Top Results From Across the Web
Storybook for Vite
In Storybook 6.3, I'm excited to announce the Storybook Vite builder, a community-led project to support one of the hottest build tools on ......
Read more >Storybook 6.3 + Vite support? · Issue #166 - GitHub
Storybook 6.3 introduced Vite support. Vite replaces webpack for us in our toolchain, greatly improves build speed, and works great with ...
Read more >Storybook for Vite - Medium
With Storybook 6.3, you can use Vite to build your Storybook. It works with React, Vue, Svelte and Lit. Continue reading ». ❤️...
Read more >Speed up Storybook with Vite and SWC — with the help of Nx
Starting with Storybook 6.3, Storybook announced the community-led project for Vite support on Storybook, Storybook Vite builder.
Read more >Issues running Storybook with Vite builder in Docker ...
It turns out there is a small 'gotcha' when moving from Webpack to Vite with file extensions. If any of your React components...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@adiun, Hi. I didn’t see that error while fixing creevey to work with Vite. But I checked, that Creevey works in your monorepo project with vite and also it works on a fresh clean vite project.
I released 0.7.33 with those fixes. Please, check it out. And feel free to ask me if something goes wrong.
@adiun no I didn’t. But I’m pretty sure if creevey starts tests without any errors, the extract will work as well, because it reuse same logic to get stories meta.
The one important issue that I found is Creevey doesn’t work well with monorepos, I mean that Creevey work with only one storybook config at the time. So you need to have root storybook setup and the same for Creevey, or have to use Creevey per each package inside a monorepo like here https://github.com/adiun/vite-monorepo/pull/1