diff --git a/src/pnpResolver.js b/src/pnpResolver.js index 26edf29..0d92395 100644 --- a/src/pnpResolver.js +++ b/src/pnpResolver.js @@ -12,7 +12,10 @@ export default pnpapi && ((id, parent) => { return null } - const path = pnpapi.resolveRequest(id, parent) + let path = null + try { + path = pnpapi.resolveRequest(id, parent) + } catch { /* empty */ } return path !== null ? pathToFileURL(path).href : null })