-
-
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 injecting packageManager pnpm 8.1.0 when you run npm run storybook
#29146
Comments
Thank you for reporting this bug!
As you might guess, we do not intend to force anyone to use a specific package manager. This is clearly a bug. This bug occurs as soon as you have corepack enabled. We run Working on a fix right now.. |
Hi! I've been running into this issue recently with a vite project, even though it was fixed in Storybook 8.3.2. Our project is using vite 5.4.8, Node 20, Storybook 8.3.5. Running |
Same issue with |
Same issue with
+ "packageManager": "yarn@1.22.19+sha1.4ba7fc5c6e704fce2066ecbfb0b0d8976fe62447" |
Current "workaround" to solve this anoing thing is to uninstall pnpm and corepack manually. I don't use them, so I don't need them. Downgrade of srtorybook was not helpfull. |
In the meantime I'm using:
|
This issue reappeared in 8.3.2 |
@yannbf I would suggest using the On the other hand, it seems too careful to choose the package manager as most of them do not compatible with each other. It should be fine to only test the lockfile and "let it crash" when people do not have correct package manager to run the project. |
After upgrading to 8.4.7 and running {
"packageManager": "pnpm@9.1.0+sha1.217063ce3fcbf44f3051666f38b810f1ddefee4a"
} |
Describe the bug
When you run
npm run storybook
on a vite project, it is injecting this into the package.json every single time:Reproduction link
https://storybook.js.org/
Reproduction steps
As stated in the description. Make a vite project and
npm run storybook
and it will inject that line into package.json every time.Delete the line from package.json,
npm run storybook
, and it's back again.System
Additional context
No response
The text was updated successfully, but these errors were encountered: