-
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
React 19 support #39180
Comments
Able to confirm the incompatibility. App fails to build w/ Gatsby 5.14.1, producing the following stacktrace:
It seems that one of Gatsby's dependencies tries to access some React internals: /**
* @license React
* react-server-dom-webpack-writer.node.production.min.server.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
...
var ra=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,N=ra.ContextRegistry,O=ra.ReactCurrentDispatcher;
... The dependencies in included here: gatsby/packages/gatsby/package.json Line 151 in cddc252
The React 19 changelog shows that they have indeed changed internal states. Related lines of deps: {
"gatsby": "^5.14.1",
"react": "^19.0.0",
"react-dom": "^19.0.0",
} |
Preliminary Checks
Description
https://react.dev/blog/2024/12/05/react-19
Reproduction Link
https://github.com/gatsbyjs/gatsby/blob/gatsby%405.14.0/packages/gatsby/package.json#L253
Steps to Reproduce
^18.0.0 || ^0.0.0
Expected Result
React 19 is supported
Actual Result
React 19 is not supported
Environment
Config Flags
No response
The text was updated successfully, but these errors were encountered: