From f1cf145e3271ad820d9bd4527dec04b0c98cfb2b Mon Sep 17 00:00:00 2001 From: Brandon Bloom Date: Sat, 24 Oct 2020 16:35:59 -0700 Subject: [PATCH] Add react and react-dom as peer dependencies Fixes errors using Yarn 2 (berry). See https://github.com/ant-design/ant-design/issues/27339 for details. --- package.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package.json b/package.json index f79102c8c..7f18b7a73 100644 --- a/package.json +++ b/package.json @@ -83,5 +83,9 @@ }, "tnpm": { "mode": "npm" + }, + "peerDependencies": { + "react": ">=16.9.0", + "react-dom": ">=16.9.0" } }