question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Warning: ReactDOM.render is no longer supported in React 18.

See original GitHub issue

Description

Warning: ReactDOM.render is no longer supported in React 18.

Link to Reproduction

https://github.com/performautodev/my-app

Steps to reproduce

Created with

npx create-next-app@latest --ts

=> no errors

Add chakra

yarn add @chakra-ui/react @emotion/react@^11 @emotion/styled@^11 framer-motion@^6

=> when i added ChakraProvider error appear 😮

next-dev.js?3515:25 Warning: ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it’s running React 17. Learn more: https://reactjs.org/link/switch-to-createroot

look at “./2022-03-30_13-42-43.png”

https://github.com/performautodev/my-app

Chakra UI Version

1.8.7

Browser

Version 99.0.4844.82 (Official Build) (64-bit)

Operating System

  • macOS
  • Windows
  • Linux

Additional Information

Operating System:
Platform: win32
Arch: x64 Version: Windows 10 Pro Binaries: Node: 16.14.2 npm: N/A Yarn: N/A pnpm: N/A Relevant packages:
next: 12.1.3-canary.0
react: 18.0.0 react-dom: 18.0.0

=> NextJS post : https://github.com/vercel/next.js/issues/35723

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:25
  • Comments:36 (6 by maintainers)

github_iconTop GitHub Comments

95reactions
daniellaeracommented, Apr 9, 2022

I have to be honest: at the moment I’m switching to antd, it seems to have a better integration with React v18, sorry

82reactions
gaearoncommented, Apr 9, 2022

@daniellaera Comments like this are not helpful. They’re creating undue pressure on maintainers literally several days after the release. It’s also the weekend.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ReactDOM.render is no longer supported in React 18 - Stack ...
React 18 shipped March 29th, 2022. ReactDOM.render has been deprecated in React 18 and currently issues a warning and runs in a compatible ......
Read more >
ReactDOM.render is no longer supported in React 18
If you are using ReactDOM.render() in your React 18 app, you will definitely see the below issue. ... The reason is ReactDOM.render is...
Read more >
ReactDOM.render is no longer supported in React 18
The error "ReactDOM.render is no longer supported in React 18. Use createRoot instead" occurs because the ReactDOM.render method has been deprecated. To solve ......
Read more >
ReactDOM.render is no longer supported in React 18.
ReactDom.render is no longer supported in React latest update 18.0.0. UsecreateRoot instead untill you switch to the new API, your app will ...
Read more >
ReactDOM.render is no longer supported in React 18 ... - GitHub
Hello, thanks for this great project. FYI after upgrading to React 18 I can see in my browser console: Warning: ReactDOM.render is no...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found