Skip to content

Breaking change from Storybook 7 prevents setup of this gem without using an older storybook version #166

@alianam

Description

@alianam

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions