-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
npx sb init doesn't work for monorepos #12995
Comments
Work perfectly if we remove this line in .storybook/main.js
|
For pnpm package manager, trying the |
Also an issue for pnpm as previous commenter mentioned. When running pnpx sb init / upgrade:
Running |
For now these steps should work to setup a package in a monorepo (I'm using Svelte & pnpm):
|
any updates? |
This issue seems to be caused by Webpack only reading loaders from the working directory and not following symlinks. Webpack 5 might solve this but it is still experimental in SB. A possible solution suggested would require SB to change its Webpack < 5 configuration to use |
@unknownterritory FWIW webpack5 support is mostly stable as of the 6.3 release |
this is still a problem. i'm now in a yarn2 monorepo and the problem is that someone on npmjs has created a package that also provides the so yeah... I can literally not even use the install command now. |
anyone find a work around for this issue? I too am trying to use yarn Berry/workspaces (monorepo) with npx sb and having no luck. |
I think my issue discussion#477 is related to this! |
pnpm support has been greatly improved in Storybook 7.0. During installation, we attempt to detect which package manager to use to install dependencies based on what kind of lock file you have in the project. It can sometimes get it wrong, so if you want to force a particular package manager, you can use a Please let us know if you continue to have issues installing storybook in monorepos, but I believe this issue is resolved unless I hear otherwise. |
On a
|
@haf, please use storybook 7. It is still in beta, so you need to use |
Describe the bug
website no longer describes manual install.
To Reproduce
Steps to reproduce the behavior:
npx sb init
Expected behavior
yarn add -DW ...packages
Screenshots
If applicable, add screenshots to help explain your problem.
Code snippets
If applicable, add code samples to help explain your problem.
System
Please paste the results of
npx sb@next info
here.I've just tried manually installing pacakages... so that's why you see
Additional context
The text was updated successfully, but these errors were encountered: