From 36dd55791de6098dacd439470c48757749910b48 Mon Sep 17 00:00:00 2001 From: PeachScript Date: Tue, 7 Mar 2023 09:52:18 +0800 Subject: [PATCH] fix: react types is missing in react template --- suites/boilerplate/templates/react/package.json.tpl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/suites/boilerplate/templates/react/package.json.tpl b/suites/boilerplate/templates/react/package.json.tpl index 2737884b7c..28d2c168f4 100644 --- a/suites/boilerplate/templates/react/package.json.tpl +++ b/suites/boilerplate/templates/react/package.json.tpl @@ -56,6 +56,8 @@ "devDependencies": { "@commitlint/cli": "^17.1.2", "@commitlint/config-conventional": "^17.1.0", + "@types/react": "^18.0.0", + "@types/react-dom": "^18.0.0", "@umijs/lint": "^4.0.0", "dumi": "{{{ version }}}", "eslint": "^8.23.0",