From b385065c5d97414764aa3f045fa28a6961a3ac33 Mon Sep 17 00:00:00 2001 From: Brandon Bloom Date: Sat, 24 Oct 2020 16:35:17 -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 80a70708..ed4c06e3 100644 --- a/package.json +++ b/package.json @@ -62,5 +62,9 @@ "react-dom": "^16.0.0", "sinon": "^9.0.1", "typescript": "^4.0.2" + }, + "peerDependencies": { + "react": ">=16.9.0", + "react-dom": ">=16.9.0" } }