-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Open
Description
Describe the bug
After upgrading Storybook from 9.1.16 to 10.0.5, the React Devtools produce the following console error:
Uncaught Error: React is running in production mode, but dead code elimination has not been applied. Read how to correctly configure React for production: https://react.dev/link/perf-use-production-build
Reproduction link
Reproduction steps
- Install and enable react dev tools
- Open the above example
- Open the preview in a new tab
System
Storybook Environment Info:
System:
OS: Linux 6.6 Ubuntu 24.04.3 LTS 24.04.3 LTS (Noble Numbat)
CPU: (20) x64 12th Gen Intel(R) Core(TM) i7-12800H
Shell: 5.9 - /bin/zsh
Binaries:
Node: 22.21.1 - ~/.nvm/versions/node/v22.21.1/bin/node
Yarn: 1.22.19 - /mnt/c/Program Files (x86)/Yarn/bin/yarn
npm: 10.9.4 - ~/.nvm/versions/node/v22.21.1/bin/npm <----- active
Browsers:
Chrome: 141.0.7390.107
npmPackages:
@storybook/addon-docs: 10.0.5 => 10.0.5
@storybook/react-vite: 10.0.5 => 10.0.5
eslint-plugin-storybook: 10.0.5 => 10.0.5
storybook: 10.0.5 => 10.0.5Additional context
- The issue can also be recreated with the basic React + Vite setup obtained using
npm create storybook@latest - Tested in Chrome and Firefox
dosubot, mmirus, oyvinmar, npearson72, macabeus and 3 more
Metadata
Metadata
Assignees
Type
Projects
Status
Empathy Queue (prioritized)