-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
[gatsby-plugin-image]: Warning about createRoot
after upgrading to 1.10.0
#32451
Comments
Same. $ npm outdated
...
$ npm update
$ gatsby clean && gatsby develop
...
You can now view top-secret-project in the browser.
...
warn ./node_modules/gatsby-plugin-image/dist/lazy-hydrate-852037ce.js
Attempted import error: 'createRoot' is not exported from 'react-dom' (imported as 's').
warn ./node_modules/gatsby-plugin-image/dist/lazy-hydrate-852037ce.js
Attempted import error: 'createRoot' is not exported from 'react-dom' (imported as 's').
warn ./node_modules/gatsby-plugin-image/dist/lazy-hydrate-852037ce.js
Attempted import error: 'createRoot' is not exported from 'react-dom' (imported as 's').
success Building development bundle - 17.763s
success Writing page-data.json files to public directory - 1.265s - 2/8 6.32/s
success onPreExtractQueries - 0.002s
success extract queries from components - 0.246s
success write out requires - 0.006s
warn ./node_modules/gatsby-plugin-image/dist/lazy-hydrate-852037ce.js
Attempted import error: 'createRoot' is not exported from 'react-dom' (imported as 's').
warn ./node_modules/gatsby-plugin-image/dist/lazy-hydrate-852037ce.js
Attempted import error: 'createRoot' is not exported from 'react-dom' (imported as 's').
warn ./node_modules/gatsby-plugin-image/dist/lazy-hydrate-852037ce.js
Attempted import error: 'createRoot' is not exported from 'react-dom' (imported as 's').
success Re-building development bundle - 1.146s
success Writing page-data.json files to public directory - 0.004s - 0/6 1601.30/s $ gatsby clean
$ rm -rf node_modules/ package-lock.json
$ npm install
$ gatsby develop but no luck System:
OS: macOS 11.2.3
CPU: (4) x64 Intel(R) Core(TM) i7-6567U CPU @ 3.30GHz
Memory: 342.35 MB / 16.00 GB
Shell: 5.8 - /bin/zsh
npmPackages:
gatsby: ^3.9.1 => 3.10.0
gatsby-cli: ^3.9.0 => 3.10.0
gatsby-plugin-image: ^1.9.0 => 1.10.0
gatsby-plugin-manifest: ^3.9.0 => 3.10.0
gatsby-plugin-mdx: ^2.9.0 => 2.10.0
gatsby-plugin-postcss: ^4.9.0 => 4.10.0
gatsby-plugin-react-helmet: ^4.9.0 => 4.10.0
gatsby-plugin-sharp: ^3.9.0 => 3.10.0
gatsby-plugin-sitemap: ^4.5.0 => 4.6.0
gatsby-source-filesystem: ^3.9.0 => 3.10.0
gatsby-transformer-json: ^3.9.0 => 3.10.0
gatsby-transformer-sharp: ^3.9.0 => 3.10.0
react: ^17.0.2 => 17.0.2 Looks like a possible react 18 issue? I'm not using DEV_SSR. Clue? |
same here. |
Same issue even after issuing |
createRoot
after upgrading to 1.10.0
Hi, thanks for the issue! While it shows a warning it will continue working. It shows it because with #32378 we imported it for React 18 support but check for its existence and fallback if not existent. Once we fix the import the warning will go away. |
Fixed in |
Thank you for the great support for Gatsby as always! |
Preliminary Checks
Description
I am receiving the following warning after upgrading Gatsby to 3.10.0 and Gatsby Image to 1.10.0 and running npm run develop.
warn ./node_modules/gatsby-plugin-image/dist/lazy-hydrate-852037ce.js
Attempted import error: 'createRoot' is not exported from 'react-dom' (imported as 's').
Reproduction Link
n/a
Steps to Reproduce
Expected Result
n/a
Actual Result
n/a
Environment
Config Flags
No response
The text was updated successfully, but these errors were encountered: