diff --git a/examples/react-native-bare-example/metro.config.js b/examples/react-native-bare-example/metro.config.js index d7fb852418..e315f1d159 100644 --- a/examples/react-native-bare-example/metro.config.js +++ b/examples/react-native-bare-example/metro.config.js @@ -18,6 +18,7 @@ config.watchFolders = [workspaceRoot, projectRoot]; config.resolver.nodeModulesPaths = [ path.resolve(projectRoot, 'node_modules'), path.resolve(workspaceRoot, 'node_modules'), + path.resolve(workspaceRoot, 'account-kit/rn-signer/node_modules'), ]; // Force Metro to resolve (sub)dependencies only from the `nodeModulesPaths` config.resolver.disableHierarchicalLookup = true; diff --git a/examples/react-native-expo-example/metro.config.js b/examples/react-native-expo-example/metro.config.js index 3d042fc9a9..9b432e4613 100644 --- a/examples/react-native-expo-example/metro.config.js +++ b/examples/react-native-expo-example/metro.config.js @@ -15,6 +15,7 @@ config.watchFolders = [projectRoot, monorepoRoot]; config.resolver.nodeModulesPaths = [ path.resolve(projectRoot, "node_modules"), path.resolve(monorepoRoot, "node_modules"), + path.resolve(monorepoRoot, "account-kit/rn-signer/node_modules"), ]; // Force Metro to resolve (sub)dependencies only from the `nodeModulesPaths`