diff --git a/patches/metro+0.64.0.patch b/patches/metro+0.64.0.patch new file mode 100644 index 000000000000..249ae5cecd32 --- /dev/null +++ b/patches/metro+0.64.0.patch @@ -0,0 +1,13 @@ +diff --git a/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js b/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js +index 5f32fc5..2b80fda 100644 +--- a/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js ++++ b/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js +@@ -346,7 +346,7 @@ class UnableToResolveError extends Error { + try { + file = fs.readFileSync(this.originModulePath, "utf8"); + } catch (error) { +- if (error.code === "ENOENT") { ++ if (error.code === "ENOENT" || error.code === 'EISDIR') { + // We're probably dealing with a virtualised file system where + // `this.originModulePath` doesn't actually exist on disk. + // We can't show a code frame, but there's no need to let this I/O