From 6d58de1b7b8e4ac236acc997316721850218f5d3 Mon Sep 17 00:00:00 2001 From: Austin Kuo Date: Sun, 31 Jan 2016 06:44:10 -0800 Subject: [PATCH] Improve the error message when the packager can't find a module Summary: Closes https://github.com/facebook/react-native/pull/5647 Reviewed By: svcscm Differential Revision: D2884241 Pulled By: androidtrunkagent fb-gh-sync-id: 115491270c8f84d45f67a1a477543d9ace76f447 --- .../src/DependencyResolver/DependencyGraph/ResolutionRequest.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react-packager/src/DependencyResolver/DependencyGraph/ResolutionRequest.js b/react-packager/src/DependencyResolver/DependencyGraph/ResolutionRequest.js index 149cab01..26515617 100644 --- a/react-packager/src/DependencyResolver/DependencyGraph/ResolutionRequest.js +++ b/react-packager/src/DependencyResolver/DependencyGraph/ResolutionRequest.js @@ -386,7 +386,7 @@ class ResolutionRequest { throw new UnableToResolveError( fromModule, toModule, -`Invalid directory ${potentialDirPath} +`Unable to find this module in its module map or any of the node_modules directories under ${potentialDirPath} and its parent directories This might be related to https://github.com/facebook/react-native/issues/4968 To resolve try the following: