diff --git a/packages/remax-web/package.json b/packages/remax-web/package.json index 35e1985e3..7c70fb34d 100644 --- a/packages/remax-web/package.json +++ b/packages/remax-web/package.json @@ -28,7 +28,6 @@ "@remax/framework-shared": "2.15.14", "@remax/react-router-cache-route": "^1.8.4", "react-is": "^17.0.2", - "react-router-dom": "^5.2.0", "rmc-pull-to-refresh": "^1.0.12", "umi-hd": "^5.0.1" }, @@ -41,6 +40,9 @@ "react-dom": "^16.13.1", "react-test-renderer": "^16.13.1" }, + "peerDependencies": { + "react-router-dom": "^5.0.0 || ^6.0.0" + }, "publishConfig": { "access": "public" }, diff --git a/yarn.lock b/yarn.lock index 7df9ec1c8..0f14d26cf 100644 --- a/yarn.lock +++ b/yarn.lock @@ -17106,7 +17106,7 @@ react-router-config@5.1.1: dependencies: "@babel/runtime" "^7.1.2" -react-router-dom@5.2.0, react-router-dom@^5.2.0: +react-router-dom@5.2.0: version "5.2.0" resolved "https://registry.yarnpkg.com/react-router-dom/-/react-router-dom-5.2.0.tgz#9e65a4d0c45e13289e66c7b17c7e175d0ea15662" integrity sha512-gxAmfylo2QUjcwxI63RhQ5G85Qqt4voZpUXSEqCwykV0baaOTQDR1f0PmY8AELqIyVc0NEZUj0Gov5lNGcXgsA==