chore: fix Storybook issue by updating React and Storybook to v7.x#515
Merged
chore: fix Storybook issue by updating React and Storybook to v7.x#515
Conversation
- Add React and React-DOM as devDependencies to fix 'Cannot find module react/package.json' error - Update all Storybook packages from 6.5.x to 7.6.17 for better compatibility - Modernize Storybook configuration to use @storybook/react-vite framework - Update story files to use new Storybook 7.x format (StoryObj instead of Template pattern) - Add Vite configuration for improved build performance - Update Docker configuration to use npm and correct storybook command - Remove deprecated @storybook/preset-create-react-app preset Fixes #349
Member
Author
|
Obviously this supersedes #351. |
lissavxo
approved these changes
Jul 10, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related to #349
Description
Fixes Storybook failing to start with
Cannot find module 'react/package.json'error (#349).Changes:
Test plan
Start Storybook:
cd react && npm install && npm run storybookDocker test:
docker-compose upfrom root directoryBuild test:
npm test && npm run buildin react directoryRemarks
Technical: Upgrades Storybook to v7.6.17 with Vite for better performance. No breaking changes for end users - purely a dev environment improvement.