From 879e3c9092e17d38eddfbff7562487e5db020e2e Mon Sep 17 00:00:00 2001 From: Alberto Date: Thu, 9 Nov 2023 17:58:11 +0100 Subject: [PATCH] Changed `config.resolver.disableHierarchicalLookup` This fixes the error: `Unable to resolve "uuid/v5" from "../../node_modules/expo/build/environment/getInstallationIdAsync.js"` --- apps/expo/metro.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/expo/metro.config.js b/apps/expo/metro.config.js index 992e787ab..ab039a574 100755 --- a/apps/expo/metro.config.js +++ b/apps/expo/metro.config.js @@ -27,7 +27,7 @@ config.resolver.nodeModulesPaths = [ path.resolve(workspaceRoot, 'node_modules'), ] // 3. Force Metro to resolve (sub)dependencies only from the `nodeModulesPaths` -config.resolver.disableHierarchicalLookup = true +config.resolver.disableHierarchicalLookup = false config.transformer = { ...config.transformer, unstable_allowRequireContext: true } config.transformer.minifierPath = require.resolve('metro-minify-terser')