-
I have been analyzing some hydration issues in a live website that recently migrated from Shopify Themes to Hydrogen and those issues seem to have been known for a while. I have investigated a couple options on how to address them and reached the following options:
Option 3 is the most promising, but I couldn't even open the website because of the following error: [1] ╭─ error ──────────────────────────────────────────────────────────────────────╮ The failing package is called "react-reconciler" and it is not a part of the project direct dependencies. It is actually used by @shopify/cli-kit:
So, from what I understand there is no support for React 19 by Hydrogen yet. Is there some workaround or timeline for that? Or am I misunderstand something? For reference, the command being called is diff --git a/package.json b/package.json
index 3b3b7f3f..bfaf581e 100644
--- a/package.json
+++ b/package.json
@@ -31,8 +31,8 @@
"@builder.io/utils": "^1.1.20",
"@remix-run/css-bundle": "^2.1.0",
"@remix-run/react": "^2.1.0",
- "@shopify/cli": "3.51.0",
- "@shopify/cli-hydrogen": "^6.0.2",
+ "@shopify/cli": "3.59.2",
+ "@shopify/cli-hydrogen": "^8.0.3",
"@shopify/hydrogen": "^2024.4.0",
"@shopify/remix-oxygen": "^2.0.2",
"@types/react-gtm-module": "^2.0.3",
@@ -43,10 +43,10 @@
"isbot": "^3.6.12",
"jwt-decode": "^3.1.2",
"postcss-cli": "^10.1.0",
- "react": "^18.2.0",
+ "react": "19.0.0-beta-94eed63c49-20240425",
"react-compare-image": "^3.4.0",
"react-country-flag": "^3.1.0",
- "react-dom": "^18.2.0",
+ "react-dom": "19.0.0-beta-94eed63c49-20240425",
"react-flickity-component": "^4.0.7",
"react-gtm-module": "^2.0.11",
"react-intersection-observer": "^9.5.3",
@@ -60,6 +60,10 @@
"unlighthouse": "^0.10.0",
"yup": "^1.2.0"
},
+ "overrides": {
+ "react": "19.0.0-beta-94eed63c49-20240425",
+ "react-dom": "19.0.0-beta-94eed63c49-20240425"
+ },
"devDependencies": {
"@babel/preset-env": "^7.23.2",
"@babel/preset-react": "^7.22.15",
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
I think that it will be soon! The Remix team already made some posts on X about React 19 and Remix. |
Beta Was this translation helpful? Give feedback.
-
We don't have a clear timeline for this yet. We depend on two things:
We'll probably focus on solutions for |
Beta Was this translation helpful? Give feedback.
-
...tooooo early to think about react 19 😄 |
Beta Was this translation helpful? Give feedback.
We don't have a clear timeline for this yet. We depend on two things:
We'll probably focus on solutions for
2
after1
is done, but this might not happen until React 19 is actually stable.