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

[Bug]: Error: Dynamic require of "react" is not supported #30095

Closed
shilman opened this issue Dec 18, 2024 · 0 comments · Fixed by #30098
Closed

[Bug]: Error: Dynamic require of "react" is not supported #30095

shilman opened this issue Dec 18, 2024 · 0 comments · Fixed by #30098

Comments

@shilman
Copy link
Member

shilman commented Dec 18, 2024

Describe the bug

In the latest beta v8.5.0-beta.1, initializing a new Vite-React-TS project in an empty directory leads to the following error on the /onboarding path:

Image

Reproduction link

N/A

Reproduction steps

 mkdir empty-85
 cd empty-85
 npx storybook@next init

System

System:
    OS: macOS 15.1.1
    CPU: (10) arm64 Apple M1 Pro
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.17.0 - /usr/local/bin/node
    Yarn: 1.22.22 - /usr/local/bin/yarn
    npm: 10.8.2 - /usr/local/bin/npm <----- active
  Browsers:
    Chrome: 131.0.6778.140
    Safari: 18.1.1
  npmPackages:
    @storybook/addon-essentials: ^8.5.0-beta.1 => 8.5.0-beta.1 
    @storybook/addon-interactions: ^8.5.0-beta.1 => 8.5.0-beta.1 
    @storybook/addon-onboarding: ^8.5.0-beta.1 => 8.5.0-beta.1 
    @storybook/blocks: ^8.5.0-beta.1 => 8.5.0-beta.1 
    @storybook/react: ^8.5.0-beta.1 => 8.5.0-beta.1 
    @storybook/react-vite: ^8.5.0-beta.1 => 8.5.0-beta.1 
    @storybook/test: ^8.5.0-beta.1 => 8.5.0-beta.1 
    eslint-plugin-storybook: ^0.11.1 => 0.11.1 
    storybook: ^8.5.0-beta.1 => 8.5.0-beta.1

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant