-
-
Notifications
You must be signed in to change notification settings - Fork 9.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Yarn 2: SB not working when using a .storybook/preview.js file #10094
Comments
We think that it has to do with decorators, because when we remove the file |
.storybook/preview.js
file
.storybook/preview.js
file
@ChiefORZ Thanks for reporting this issue, I will try to work on it soon. I added this to the Yarn 2 compatibility TODO list 😉 You can follow the WIP about Yarn 2 compatibility in this issue: #9527. ➰ Workaround for now: add 📝 Note for future me: The problem is not the decorators directly but the |
I've got similar issue, but with running storyshots with jest. With preview.js it gives me:
...and without preview.js it just works. |
Have you tried upgrading to 6.0 alpha? @gaetanmaisse has made a bunch of improvements to support Yarn 2 as part of #9527 |
^Didn't solve the issue. Although rewriting my preview.js to common js helped |
@GR34SE "helped" as in fixed it? that's pretty weird. |
@ChiefORZ this should be fixed in the next |
Zoinks!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.0.0-alpha.31 containing PR #10305 that references this issue. Upgrade today to try it out! You can find this prerelease on the |
😞 it looks like #10281 reintroduce the issue. I will 🔍 . |
The code you changed is now going through babel. Happy to submit a new PR taking yours into account ! |
I am getting what seems to be similar, but not the same error, on
Adding |
Yowza!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.0.0-alpha.35 containing PR #10342 that references this issue. Upgrade today to try it out! You can find this prerelease on the Closing this issue. Please re-open if you think there's still more to do. |
@DimitrK Can you give it a try with |
@gaetanmaisse & @shilman I can confirm |
@DimitrK all your |
I'm using Yarn 1.22 and this didn't do anything for me. |
So I can confirm that this bug still exists in version 6.3.4 of StoryBook. I'm using yarn 1.22.10. But now it seems that the root cause is quite different. At the beginning I had custom folder (
When I moved |
Describe the bug
We tried to migrate our package to yarn v2 with
@storybook/react v6.0.0-alpha.21
.And it always fails with following error:
Code snippets
We have following config files:
System:
System:
OS: macOS 10.15.3
CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
Binaries:
Node: 10.16.3 - /usr/local/bin/node
Yarn: 2.0.0-rc.29 - /usr/local/bin/yarn
npm: 6.9.0 - /usr/local/bin/npm
Browsers:
Chrome: 80.0.3987.132
Firefox: 72.0.2
Safari: 13.0.5
The text was updated successfully, but these errors were encountered: