diff --git a/package.json b/package.json index b12d4287f8..89606878c0 100644 --- a/package.json +++ b/package.json @@ -30,6 +30,7 @@ }, "dependencies": { "@ant-design/icons": "^5.3.7", + "@ant-design/v5-patch-for-react-19": "^1.0.3", "@docusaurus/core": "^3.8.1", "@docusaurus/faster": "^3.8.1", "@docusaurus/plugin-client-redirects": "^3.8.1", diff --git a/src/theme/Footer/index.tsx b/src/theme/Footer/index.tsx index 152311cc8b..0c672d77b1 100644 --- a/src/theme/Footer/index.tsx +++ b/src/theme/Footer/index.tsx @@ -13,6 +13,7 @@ import { useThemeConfig } from "@docusaurus/theme-common"; import styles from "./index.module.scss"; import useDocusaurusContext from "@docusaurus/useDocusaurusContext"; import { useMount } from "ahooks"; +import "@ant-design/v5-patch-for-react-19"; import ExecutionEnvironment from "@docusaurus/ExecutionEnvironment"; import "vanilla-cookieconsent/dist/cookieconsent.css"; import * as CookieConsent from "vanilla-cookieconsent"; diff --git a/yarn.lock b/yarn.lock index 0a4ac56411..f49292d416 100644 --- a/yarn.lock +++ b/yarn.lock @@ -252,6 +252,11 @@ resize-observer-polyfill "^1.5.1" throttle-debounce "^5.0.0" +"@ant-design/v5-patch-for-react-19@^1.0.3": + version "1.0.3" + resolved "https://registry.npmmirror.com/@ant-design/v5-patch-for-react-19/-/v5-patch-for-react-19-1.0.3.tgz#6f522be2dd3440952617590bde5a1237a848a416" + integrity sha512-iWfZuSUl5kuhqLUw7jJXUQFMMkM7XpW7apmKzQBQHU0cpifYW4A79xIBt9YVO5IBajKpPG5UKP87Ft7Yrw1p/w== + "@antfu/install-pkg@^1.0.0": version "1.0.0" resolved "https://registry.yarnpkg.com/@antfu/install-pkg/-/install-pkg-1.0.0.tgz#2912a150fc8b35ec912f583f90074ee98f64d66a"