From d3a1d27aaa0a686b692499a88b03475f9823446e 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/packager/react-packager/src/DependencyResolver/DependencyGraph/ResolutionRequest.js b/packager/react-packager/src/DependencyResolver/DependencyGraph/ResolutionRequest.js index 149cab010..265156179 100644 --- a/packager/react-packager/src/DependencyResolver/DependencyGraph/ResolutionRequest.js +++ b/packager/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: