Skip to content
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

fix(storybook): only install react deps for storybook 7 #29213 #29231

Merged
merged 1 commit into from
Dec 6, 2024

Conversation

Coly010
Copy link
Contributor

@Coly010 Coly010 commented Dec 6, 2024

Current Behavior

Storybook 7 requires react and react-dom to be installed as they are peer deps of the storybook package.
Storybook 8 does not require these deps to be installed as they are now bundled correctly into storybook

Expected Behavior

When user's version of storybook < 8, install react and react-dom, otherwise, do not.

Related Issue(s)

Fixes #29213

@Coly010 Coly010 requested a review from a team as a code owner December 6, 2024 11:24
@Coly010 Coly010 requested a review from jaysoo December 6, 2024 11:24
@Coly010 Coly010 self-assigned this Dec 6, 2024
Copy link

vercel bot commented Dec 6, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Dec 6, 2024 3:43pm

@Coly010 Coly010 force-pushed the storybook/react-deps branch from ac09f6c to 254cacb Compare December 6, 2024 15:41
@Coly010 Coly010 merged commit 51cf34f into master Dec 6, 2024
6 checks passed
@Coly010 Coly010 deleted the storybook/react-deps branch December 6, 2024 16:11
FrozenPandaz pushed a commit that referenced this pull request Dec 6, 2024
## Current Behavior
Storybook 7 requires `react` and `react-dom` to be installed as they are
peer deps of the storybook package.
Storybook 8 does not require these deps to be installed as they are now
bundled correctly into storybook

## Expected Behavior
When user's version of storybook < 8, install `react` and `react-dom`,
otherwise, do not.

## Related Issue(s)

Fixes #29213

(cherry picked from commit 51cf34f)
Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

storybook-configuration should stop installing React
2 participants