-
Notifications
You must be signed in to change notification settings - Fork 39
Description
Hello!
I followed the Getting started docs for this gem a few days ago and ran into an issue when trying to run the yarn storybook
command towards the end of the setup. I'll add more details below, but ultimately I'm wondering whether there are any plans to get a fix in so that this gem is compatible with the latest release of storybook, v7.
The error I encountered was raised because the start-storybook
binary has been removed as of the v7 release of storybook
. I read through the release notes in that section, and the breaking change entails having to specify a framework
. For our setup, specifically, we aren't using any of the major frameworks listed (as we're mainly using Rails, ViewComponent, Stimulus/Turbo for our frontend) and so the fix wasn't straightforward. Having said that, there are more "general" options for use like html-webpack5
and web-components-webpack5
that may be usable, but I didn't test them out yet since I thought it best to see whether this work is already underway.
For now, the workaround I've implemented (which works) is to pin the @storybook/core-server
and @storybook/server
version to "^6.5.17-alpha.0"
and I've also pinned any add-ons to the same version (where applicable). This isn't ideal, and eventually can cause an issue once versions older than v7 are no longer supported.
I'm happy to help contribute to this fix in any way I can - thanks!