From 562447be4705c3e3338633ca108e7e67b9b01640 Mon Sep 17 00:00:00 2001 From: Tommy Nguyen <4123478+tido64@users.noreply.github.com> Date: Mon, 5 Feb 2024 19:08:59 +0100 Subject: [PATCH] [LOCAL][0.73] fix: cannot find module `react-native-*/Libraries/Core/InitializeCore` (#42877) --- packages/community-cli-plugin/src/utils/loadMetroConfig.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/community-cli-plugin/src/utils/loadMetroConfig.js b/packages/community-cli-plugin/src/utils/loadMetroConfig.js index ce3b6f36f4283d..22e6afd6724134 100644 --- a/packages/community-cli-plugin/src/utils/loadMetroConfig.js +++ b/packages/community-cli-plugin/src/utils/loadMetroConfig.js @@ -62,6 +62,7 @@ function getOverrideConfig(ctx: ConfigLoadingContext): InputConfigT { ...outOfTreePlatforms.map(platform => require.resolve( `${ctx.platforms[platform].npmPackageName}/Libraries/Core/InitializeCore`, + {paths: [ctx.root]}, ), ), ],