diff --git a/src/module-cache.coffee b/src/module-cache.coffee index 6c9209095..b4d51dd51 100644 --- a/src/module-cache.coffee +++ b/src/module-cache.coffee @@ -59,6 +59,8 @@ loadDependencies = (modulePath, rootPath, rootMetadata, moduleCache) -> if childMetadata?.version try mainPath = require.resolve(childPath) + catch error + mainPath = null if mainPath moduleCache.dependencies.push