From 92d1ea96b677c98eb47e54ec91036b7ef9982304 Mon Sep 17 00:00:00 2001 From: "huajingwen@didiglobal.com" Date: Mon, 4 Nov 2024 20:10:56 +0800 Subject: [PATCH] fix ts error --- packages/webpack-plugin/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/webpack-plugin/package.json b/packages/webpack-plugin/package.json index 68ffb9dc8..7a201c7ce 100644 --- a/packages/webpack-plugin/package.json +++ b/packages/webpack-plugin/package.json @@ -86,8 +86,7 @@ "@mpxjs/api-proxy": "^2.9.65", "@types/babel-traverse": "^6.25.4", "@types/babel-types": "^7.0.4", - "@types/react": "18.2.0", - "react": "18.2.0", + "@types/react": "^18.2.79", "react-native": "^0.74.5", "react-native-gesture-handler": "^2.18.1", "react-native-linear-gradient": "^2.8.3", @@ -95,6 +94,7 @@ "react-native-webview": "^13.12.2", "rimraf": "^6.0.1" }, + "resolutions": { "@types/react": "~18.3.3" }, "engines": { "node": ">=14.14.0" },