Open drewbrend opened 2 years ago
➗ I'm also running into this issue in my repo. Please triage!
Thanks to the excellent repro shared, we were able to prove our new screener-storybook hook for storyStoreV7 also works in your mysterious edge-case here. We have end to end Visual test results working and looking to push out an alpha soon for feedback.
This is the basis for our first step into proper V7 support in screener-storybook, we'll make sure there's an option for this path as well where:
getStorybook
function for the framework existsUpdate: Screener Storybook beta no longer uses this approach, note "Hookless" remarks in README including for static builds where you'll want to remove any manual additions to your preview.js
.
Screener Storybook 1.0 is now released, and require('@storybook/react').getStorybook
is no longer present as of this version.
Please also remove any __screener_storybook__
legacy hooks that may have been manually added to your builds per our old instructions.
Describe the bug We use screener-storybook to run visual test against our storybook stories. It uses require('@storybook/react').getStorybook to hook into storybook. Since 2 days ago the call to this API started failing consistently. We did not change anything with storybook and I'm able to reproduce outside of our project and without
screener-storybook
so I don't think this is related to our configs or that library. This also started happening at the same time across multiple independent repos.To Reproduce I tried to reproduce with
npx sb@next repro
, however I had issues with the generator so I reproduced here instead: https://stackblitz.com/edit/github-kza2ty?file=.storybook/preview.jsAll I added from the default storybook setup is a call to
require('@storybook/react').getStorybook()
.System
Additional context I have tried downgrading the version of storybook back to 6.4 and even upgrading to latest 7.0-alpha.34 (
stories
is now calledentries
in v7) but still see the error, so it seems unrelated to the version of storybook.Error