Does storybook 10.2 work on yarn pnp? #34000
Replies: 2 comments
-
|
Hi @hongwonlim! I'm Dosu and I’m helping the storybook team. Storybook does officially support Yarn PnP, but there are some known issues with Storybook 10.x and Yarn PnP. The most common problem is a missing React peer dependency that causes errors like: Workaround: Add this to your packageExtensions:
storybook@10.0.2:
peerDependencies:
react: '^19.0.0'(Adjust the version numbers to match your setup) Additionally, note that PnP support is being deprecated and will be removed in Storybook 11 due to low adoption. Could you share the specific error message you're seeing when running To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
|
Short answer: yes, Storybook can work with Yarn PnP, but PnP requires stricter dependency resolution and some addons/framework combos still need tweaks. Try this checklist:
If you share the exact error line from |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Recently I migrate to yarn berry pnp
but when I command yarn run storybook still doesn't work
I think storybook 10.2 doesn't work on yarn pnp is it right?
Additional information
No response
Create a reproduction
No response
Beta Was this translation helpful? Give feedback.
All reactions