From 62c15bacaac160d0858a76946217a2bfffb08b6d Mon Sep 17 00:00:00 2001 From: Jakub Romanczyk Date: Sat, 10 Feb 2024 17:03:15 -0800 Subject: [PATCH] fix(virtualized-lists): declare missing `react` peer dependency (#42947) Summary: In setups with `pnpm` `react-native/virtualized-lists` gets bundled incorrectly because of the following error: `Module not found: Error: Can't resolve 'react'` As 'react' is used inside of the package, it should declared explicitly, instead of being a phantom dependency. ## Changelog: [GENERAL] [FIXED] - Declare missing peer dependency `react` Pull Request resolved: https://github.com/facebook/react-native/pull/42947 Test Plan: not needed Reviewed By: NickGerleman Differential Revision: D53617462 Pulled By: cortinico fbshipit-source-id: 19a8fed94263646b0af93339d5c014e629dfa6b1 --- packages/virtualized-lists/package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/virtualized-lists/package.json b/packages/virtualized-lists/package.json index cbeb48a140528b..b05d544bd85d55 100644 --- a/packages/virtualized-lists/package.json +++ b/packages/virtualized-lists/package.json @@ -27,6 +27,7 @@ "react-test-renderer": "18.2.0" }, "peerDependencies": { + "react": "*", "react-native": "*" } }