-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
[Bug]: Storybook 7.1 interactions addon fails to build with Yarn PnP #23570
Comments
Looking at the actual error, it seems bad that Webpack is trying to include |
write in your packageExtensions:
'jest-util@*':
dependencies:
'process': '^0.11.10'
'url': '^0.11.1'
'graceful-fs@*':
dependencies:
'util': '^0.12.5' and run |
But why are jest and graecful-fs being bundled? It seems like those should be Node-only and not included in a browser bundle. |
It seems like this issue first surfaced in |
Looking into this more, it looks like |
I'm seeing this (seemingly related) warning in my JS console when running Storybook with yarn (classic):
It doesn't prevent Storybook from starting or running, but I'd like to get rid of the warning. First started seeing this warning after updating to Storybook 7.1, and it's still present on 7.1.1. I do use |
Describe the bug
Storybook 7.1 introduces an issue when trying to build and start Storybook with Webpack using Yarn PnP. The output of running
yarn build-storybook
is this:To Reproduce
https://github.com/Methuselah96/storybook-7-1-yarn-pnp
Starting from a fresh Storybook, steps to reproduce are:
yarn set version stable
(to use Yarn PnP)yarn install
yarn build-storybook
System
Additional context
Looks to be the same root issue as #23557, in my opinion closed too early. It should be safe for Storybook to be hoisted and is a sign of a deeper issue.
The text was updated successfully, but these errors were encountered: