-
-
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
Yarn 2 strict pnp: @storybook/components missing dependency on regenerator-runtime #13830
Comments
A regular dep would probably make more sense - basically the problem here is that when |
Yowza!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.2.0-alpha.29 containing PR #13916 that references this issue. Upgrade today to the
Closing this issue. Please re-open if you think there's still more to do. |
Yo-ho-ho!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.1.19 containing PR #13991 that references this issue. Upgrade today to the
|
i’m still seeing this error using yarn 2 (actually v3.0.0-rc.5, but v3 is just a continuation, rather than a massive change like v1 to v2) and storybook v6.3.0-rc.11. i’m directly depending on: "devDependencies": {
"@storybook/addon-actions": "^6.3.0-rc.11",
"@storybook/addon-docs": "^6.3.0-rc.11",
"@storybook/addon-essentials": "^6.3.0-rc.11",
"@storybook/addon-links": "^6.3.0-rc.11",
"@storybook/addons": "^6.3.0-rc.11",
"@storybook/react": "^6.3.0-rc.11",
} i started seeing the error in my builds after i added a import { addons } from '@storybook/addons';
addons.setConfig({
enableShortcuts: false,
}); the error logs look like:
Full logs from 4 lines above ERR! to end (very repetitive but in case it’s helpful)
|
Zoinks!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.3.0-rc.12 containing PR #15312 that references this issue. Upgrade today to the
|
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Default storybook for react install in yarn 2 workspaces with strict pnp linker.
Yarn Workspaces difference is that pnp fallback forcebly disabled, same can be achieved in regular yarn package with
yarn config set pnpFallbackMode none
Run
yarn workspace storybook start
, build fails with:Expected behavior
Storybook builds and starts dev server
Screenshots
Code snippets
Adding
regenerator-runtime
as peer dependency fixes the error.System
$ yarn dlx sb@next info
Additional context
This is general issue exposed by yarn 2 being very strict with undeclared dependencies usage.
The text was updated successfully, but these errors were encountered: