diff --git a/package.json b/package.json index bf61d063a..0e405358c 100644 --- a/package.json +++ b/package.json @@ -31,8 +31,8 @@ "run:example": "ts-node-dev -r dotenv/config -r tsconfig-paths/register ./examples/index.ts" }, "resolutions": { - "@types/react": "^18.0.0", - "@types/react-dom": "^18.0.0", + "@types/react": "^17.0.0", + "@types/react-dom": "^17.0.0", "react-router-dom": "^6.11.2", "react-router": "^6.11.2", "react": "^18.0.0", @@ -44,8 +44,8 @@ } }, "devDependencies": { - "@types/react": "^18.0.0", - "@types/react-dom": "^18.0.0", + "@types/react": "^17.0.0", + "@types/react-dom": "^17.0.0", "react": "^18.0.0", "react-dom": "^18.0.0", "@commitlint/cli": "^16.1.0", diff --git a/packages/plugins/mobile-client/package.json b/packages/plugins/mobile-client/package.json index 589176896..bf390f265 100644 --- a/packages/plugins/mobile-client/package.json +++ b/packages/plugins/mobile-client/package.json @@ -13,8 +13,8 @@ "@formily/shared": "2.2.26", "@nocobase/server": "0.10.0-alpha.3", "@nocobase/test": "0.10.0-alpha.3", - "@types/react": "^18.0.0", - "@types/react-dom": "^18.0.0", + "@types/react": "^17.0.0", + "@types/react-dom": "^17.0.0", "antd": "^4.24.8", "classnames": "^2.3.1", "react": "^18.0.0", diff --git a/yarn.lock b/yarn.lock index 48c710b7e..152909118 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6740,12 +6740,11 @@ version "1.2.4" resolved "https://registry.yarnpkg.com/@types/range-parser/-/range-parser-1.2.4.tgz#cd667bcfdd025213aafb7ca5915a932590acdcdc" -"@types/react-dom@<18.0.0", "@types/react-dom@^18.0.0": - version "18.2.6" - resolved "https://registry.npmmirror.com/@types/react-dom/-/react-dom-18.2.6.tgz#ad621fa71a8db29af7c31b41b2ea3d8a6f4144d1" - integrity sha512-2et4PDvg6PVCyS7fuTc4gPoksV58bW0RwSxWKcPRcHZf0PRUGq03TKcD/rUHe3azfV6/5/biUBJw+HhCQjaP0A== +"@types/react-dom@<18.0.0", "@types/react-dom@^17.0.0", "@types/react-dom@^18.0.0": + version "17.0.19" + resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-17.0.19.tgz#36feef3aa35d045cacd5ed60fe0eef5272f19492" dependencies: - "@types/react" "*" + "@types/react" "^17" "@types/react-redux@^7.1.20": version "7.1.25" @@ -6756,10 +6755,10 @@ hoist-non-react-statics "^3.3.0" redux "^4.0.0" -"@types/react@*", "@types/react@16 || 17 || 18", "@types/react@>=16.9.11", "@types/react@^18.0.0": - version "18.2.14" - resolved "https://registry.npmmirror.com/@types/react/-/react-18.2.14.tgz#fa7a6fecf1ce35ca94e74874f70c56ce88f7a127" - integrity sha512-A0zjq+QN/O0Kpe30hA1GidzyFjatVvrpIvWLxD+xv67Vt91TWWgco9IvrJBkeyHm1trGaFS/FSGqPlhyeZRm0g== +"@types/react@*", "@types/react@16 || 17 || 18", "@types/react@>=16.9.11", "@types/react@^17", "@types/react@^17.0.0", "@types/react@^18.0.0": + version "17.0.60" + resolved "https://registry.yarnpkg.com/@types/react/-/react-17.0.60.tgz#a4a97dcdbebad76612c188fc06440e4995fd8ad2" + integrity sha512-pCH7bqWIfzHs3D+PDs3O/COCQJka+Kcw3RnO9rFA2zalqoXg7cNjJDh6mZ7oRtY1wmY4LVwDdAbA1F7Z8tv3BQ== dependencies: "@types/prop-types" "*" "@types/scheduler" "*"