diff --git a/.changeset/rare-mails-battle.md b/.changeset/rare-mails-battle.md new file mode 100644 index 000000000000..66a220acb5c3 --- /dev/null +++ b/.changeset/rare-mails-battle.md @@ -0,0 +1,7 @@ +--- +'@modern-js/utils': patch +--- + +fix: react-router-dom version + +fix: 修复 react-router-dom 版本 diff --git a/packages/toolkit/utils/package.json b/packages/toolkit/utils/package.json index 65c6a8b2a6b1..dffc2cc84d79 100644 --- a/packages/toolkit/utils/package.json +++ b/packages/toolkit/utils/package.json @@ -294,7 +294,7 @@ "caniuse-lite": "^1.0.30001489", "lodash": "^4.17.21", "serialize-javascript": "^6.0.0", - "react-router-dom": "6.11.2", + "react-router-dom": "^6.8.1", "@remix-run/router": "1.6.2", "@swc/helpers": "0.5.1" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c80e6e2c9b3b..c08050a944e7 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -5177,7 +5177,7 @@ importers: specifier: ^4.17.21 version: 4.17.21 react-router-dom: - specifier: 6.11.2 + specifier: ^6.8.1 version: 6.11.2(react-dom@18.2.0)(react@18.2.0) serialize-javascript: specifier: ^6.0.0