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

Following 'Add React to a Website' gives 'not supported' error #4547

Closed
adwilk opened this issue Apr 4, 2022 · 2 comments
Closed

Following 'Add React to a Website' gives 'not supported' error #4547

adwilk opened this issue Apr 4, 2022 · 2 comments

Comments

@adwilk
Copy link

adwilk commented Apr 4, 2022

After following the code samples on the Add React to a Website guide (using v18 .development.js scripts) there is a warning in the browser console:

Warning: You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".
printWarning @ react-dom.development.js:73
error @ react-dom.development.js:47
createRoot$1 @ react-dom.development.js:29540
(anonymous) @ (index):32

I don't see any obvious way to import react-dom/client from unpkg.

@gaearon
Copy link
Member

gaearon commented Apr 4, 2022

This is a bug: facebook/react#24221. We're looking at it but might take a week to fix.

You can ignore it.

@harish-sethuraman
Copy link
Collaborator

Closing this as it has been fixed in the react repo

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

No branches or pull requests

3 participants