From 8e0850b13ec5fc12e51af1a747b42fe93c2a53fc Mon Sep 17 00:00:00 2001 From: Anthony LC Date: Mon, 10 Jun 2024 11:43:36 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B(app-desk)=20fix=20fetchPriority=20?= =?UTF-8?q?warning?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The upgrade to react@18.3.1 has a compatibility issue with next@14.2.3. It creates a error warning about the fetchPriority prop. This commit fixes the issue by downgrading react to 18.2.0 as it was before the last upgrade. The next.js team is already aware of the issue and it will be fixed in the next release. --- renovate.json | 9 ++++++++- src/frontend/package.json | 4 ++-- src/frontend/yarn.lock | 26 +++++++++++++------------- 3 files changed, 23 insertions(+), 16 deletions(-) diff --git a/renovate.json b/renovate.json index 02aad605..3dfa04aa 100644 --- a/renovate.json +++ b/renovate.json @@ -13,7 +13,14 @@ "enabled": false, "groupName": "ignored js dependencies", "matchManagers": ["npm"], - "matchPackageNames": ["node", "node-fetch", "i18next-parser", "eslint"] + "matchPackageNames": [ + "node", + "node-fetch", + "i18next-parser", + "eslint", + "react", + "react-dom" + ] } ] } diff --git a/src/frontend/package.json b/src/frontend/package.json index 0a23385d..f1b4238d 100644 --- a/src/frontend/package.json +++ b/src/frontend/package.json @@ -26,8 +26,8 @@ "resolutions": { "@types/node": "20.14.2", "@types/react-dom": "18.3.0", - "react": "18.3.1", - "react-dom": "18.3.1", + "react": "18.2.0", + "react-dom": "18.2.0", "typescript": "5.4.5" } } diff --git a/src/frontend/yarn.lock b/src/frontend/yarn.lock index 475d022e..2384c695 100644 --- a/src/frontend/yarn.lock +++ b/src/frontend/yarn.lock @@ -3622,7 +3622,7 @@ resolved "https://registry.yarnpkg.com/@types/ms/-/ms-0.7.34.tgz#10964ba0dee6ac4cd462e2795b6bebd407303433" integrity sha512-nG96G3Wp6acyAgJqGasjODb+acrI7KltPiRxzHPXnP3NgI28bpQDRv53olbqGXbfcgF5aiiHmO3xpwEpS5Ld9g== -"@types/node@*": +"@types/node@*", "@types/node@20.14.2": version "20.14.2" resolved "https://registry.yarnpkg.com/@types/node/-/node-20.14.2.tgz#a5f4d2bcb4b6a87bffcaa717718c5a0f208f4a18" integrity sha512-xyu6WAMVwv6AKFLB+e/7ySZVr/0zLCzOa7rSpq6jNwpqOrUbcACDWC+53d4n2QHOnDou0fbIsg8wZu/sxrnI4Q== @@ -3649,7 +3649,7 @@ resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.7.12.tgz#12bb1e2be27293c1406acb6af1c3f3a1481d98c6" integrity sha512-5zvhXYtRNRluoE/jAp4GVsSduVUzNWKkOZrCDBWYtE7biZywwdC2AcEzg+cSMLFRfVgeAFqpfNabiPjxFddV1Q== -"@types/react-dom@*": +"@types/react-dom@*", "@types/react-dom@18.3.0": version "18.3.0" resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-18.3.0.tgz#0cbc818755d87066ab6ca74fbedb2547d74a82b0" integrity sha512-EhwApuTmMBmXuFOikhQLIBUn6uFg81SwLMOAUgodJF14SOBOCMdU04gDoYi0WOJJHD144TL32z4yDqCW3dnkQg== @@ -9163,13 +9163,13 @@ react-aria@3.33.1, react-aria@^3.33.1: "@react-aria/visually-hidden" "^3.8.12" "@react-types/shared" "^3.23.1" -react-dom@*, react-dom@18.3.1, react-dom@^18: - version "18.3.1" - resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-18.3.1.tgz#c2265d79511b57d479b3dd3fdfa51536494c5cb4" - integrity sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw== +react-dom@*, react-dom@18.2.0, react-dom@18.3.1, react-dom@^18: + version "18.2.0" + resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-18.2.0.tgz#22aaf38708db2674ed9ada224ca4aa708d821e3d" + integrity sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g== dependencies: loose-envify "^1.1.0" - scheduler "^0.23.2" + scheduler "^0.23.0" react-i18next@14.1.2: version "14.1.2" @@ -9317,10 +9317,10 @@ react-transition-group@^4.3.0: loose-envify "^1.4.0" prop-types "^15.6.2" -react@*, react@18.3.1, react@^18: - version "18.3.1" - resolved "https://registry.yarnpkg.com/react/-/react-18.3.1.tgz#49ab892009c53933625bd16b2533fc754cab2891" - integrity sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ== +react@*, react@18.2.0, react@18.3.1, react@^18: + version "18.2.0" + resolved "https://registry.yarnpkg.com/react/-/react-18.2.0.tgz#555bd98592883255fa00de14f1151a917b5d77d5" + integrity sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ== dependencies: loose-envify "^1.1.0" @@ -9719,7 +9719,7 @@ saxes@^6.0.0: dependencies: xmlchars "^2.2.0" -scheduler@^0.23.2: +scheduler@^0.23.0: version "0.23.2" resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.23.2.tgz#414ba64a3b282892e944cf2108ecc078d115cdc3" integrity sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ== @@ -10521,7 +10521,7 @@ typed-array-length@^1.0.6: is-typed-array "^1.1.13" possible-typed-array-names "^1.0.0" -typescript@*, typescript@^5.0.4: +typescript@*, typescript@5.4.5, typescript@^5.0.4: version "5.4.5" resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.4.5.tgz#42ccef2c571fdbd0f6718b1d1f5e6e5ef006f611" integrity sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==