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]: I use ejected CRA, react18, storybook/react6.5, but still got warning about ReactDOM.render() #19837

Closed
gwin-lim opened this issue Nov 15, 2022 · 1 comment

Comments

@gwin-lim
Copy link

Describe the bug

I use ejected CRA, react18, storybook/react6.5, but still got warning about ReactDOM.render()
How could I fix this?

click here to look warning msg

To Reproduce

1. yarn create react-app prj_name --template tailwindcss
2. yarn eject
3. npx storybook init
4. yarn storybook
then. got a warning on chrome console 'ReactDOM.render() is no more supported'

Sorry `npx sb@next repro` broke my project dir.
So I just describe my case briefly.

System

Environment Info:

  System:
    OS: macOS 13.0.1
    CPU: (10) arm64 Apple M1 Pro
  Binaries:
    Node: 16.14.0 - ~/.nvm/versions/node/v16.14.0/bin/node
    Yarn: 1.22.18 - ~/.nvm/versions/node/v16.14.0/bin/yarn
    npm: 8.3.1 - ~/.nvm/versions/node/v16.14.0/bin/npm
  Browsers:
    Chrome: 107.0.5304.110
    Safari: 16.1
  npmPackages:
    @storybook/addon-actions: ^6.5.13 => 6.5.13 
    @storybook/addon-essentials: ^6.5.13 => 6.5.13 
    @storybook/addon-interactions: ^6.5.13 => 6.5.13 
    @storybook/addon-links: ^6.5.13 => 6.5.13 
    @storybook/addon-postcss: ^2.0.0 => 2.0.0 
    @storybook/builder-webpack5: ^6.5.13 => 6.5.13 
    @storybook/manager-webpack5: ^6.5.13 => 6.5.13 
    @storybook/react: ^6.5.13 => 6.5.13 
    @storybook/testing-library: ^0.0.13 => 0.0.13

Additional context

I ejected CRA project.

"react": "^18.2.0",
"react-app-polyfill": "^3.0.0",
"react-dev-utils": "^12.0.1",
"react-dom": "^18.2.0",
"react-refresh": "^0.11.0",

@valentinpalkovic
Copy link
Contributor

@gwin-lim Please take a look at the discussion here: #17831 (comment)

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

No branches or pull requests

2 participants