diff --git a/packager/src/node-haste/DependencyGraph/ResolutionRequest.js b/packager/src/node-haste/DependencyGraph/ResolutionRequest.js index f4468fbe4..9da29fd31 100644 --- a/packager/src/node-haste/DependencyGraph/ResolutionRequest.js +++ b/packager/src/node-haste/DependencyGraph/ResolutionRequest.js @@ -569,14 +569,6 @@ class ResolutionRequest { } _loadAsDir(potentialDirPath: string, fromModule: TModule, toModule: string): TModule { - if (!this._options.dirExists(potentialDirPath)) { - throw new UnableToResolveError( - fromModule, - toModule, - `Directory ${potentialDirPath} doesn't exist`, - ); - } - const packageJsonPath = path.join(potentialDirPath, 'package.json'); if (this._options.hasteFS.exists(packageJsonPath)) { const main = this._options.moduleCache.getPackage(packageJsonPath).getMain();