diff --git a/packages/metro-cache/src/FileStore.js b/packages/metro-cache/src/FileStore.js index 85842bc5..6106807c 100644 --- a/packages/metro-cache/src/FileStore.js +++ b/packages/metro-cache/src/FileStore.js @@ -38,7 +38,11 @@ class FileStore { try { return serializer.readFileSync(this._getFilePath(key)); } catch (err) { - return null; + if (err.code === 'ENOENT') { + return null; + } + + throw err; } }