storybookjs / storybook

Storybook is the industry standard workshop for building, documenting, and testing UI components in isolation
https://storybook.js.org
MIT License
83.49k stars 9.13k forks source link

[Bug]: Warning: ReactDOM.render is no longer supported in React 18. Use createRoot instead. #27197

Open shilman opened 1 month ago

shilman commented 1 month ago

Describe the bug

Duplicate of https://github.com/storybookjs/storybook/issues/23816

I am seeing this in the browser console locally when I do npx storybook@latest init in an empty directory and choose the react-vite-ts template.

Interestingly, I do not see this in the linked stackblitz repro 😵

Reproduction link

https://stackblitz.com/edit/github-2nczml

Reproduction steps

No response

System

Storybook Environment Info:

  System:
    OS: macOS 14.4.1
    CPU: (10) arm64 Apple M1 Pro
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.19.0 - /usr/local/bin/node
    Yarn: 1.22.21 - /usr/local/bin/yarn
    npm: 10.2.3 - /usr/local/bin/npm <----- active
    pnpm: 9.0.6 - ~/Library/pnpm/pnpm
  Browsers:
    Chrome: 124.0.6367.208
    Safari: 17.4.1
  npmPackages:
    @storybook/addon-essentials: ^8.1.1 => 8.1.1 
    @storybook/addon-interactions: ^8.1.1 => 8.1.1 
    @storybook/addon-links: ^8.1.1 => 8.1.1 
    @storybook/addon-onboarding: ^8.1.1 => 8.1.1 
    @storybook/addon-styling-webpack: ^1.0.0 => 1.0.0 
    @storybook/blocks: ^8.1.1 => 8.1.1 
    @storybook/nextjs: ^8.1.1 => 8.1.1 
    @storybook/react: ^8.1.1 => 8.1.1 
    @storybook/test: ^8.1.1 => 8.1.1 
    storybook: ^8.1.1 => 8.1.1 


### Additional context

_No response_
shilman commented 1 month ago

Here's another one that's near and dear to our hearts @valentinpalkovic @vanessayuenn