From e8eec6b0b5002905389b9972e27bb13f46fdad0c Mon Sep 17 00:00:00 2001 From: fisker Date: Fri, 14 Feb 2020 16:31:19 +0800 Subject: [PATCH] Attempt fix --- utils/resolve.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/utils/resolve.js b/utils/resolve.js index 3138194a94..4e0dcef917 100644 --- a/utils/resolve.js +++ b/utils/resolve.js @@ -47,8 +47,12 @@ function tryRequire(target, sourceFile) { return undefined } +try { // If the target exists then return the loaded module return require(resolved) +} catch(e) { +console.log({resolved}) +} } // http://stackoverflow.com/a/27382838