diff --git a/packages/config/src/utils.ts b/packages/config/src/utils.ts index c32e12525dbd5..6d4afef63925f 100644 --- a/packages/config/src/utils.ts +++ b/packages/config/src/utils.ts @@ -62,7 +62,7 @@ export async function getPackage({ !error.message.includes(`Cannot find package '${moduleName}'`) && !error.message.includes(`Could not locate module`) ) { - throw new Error(`Unable to load ${type} matching ${name}: ${error.stack}`); + throw new Error(`Unable to load ${type} matching ${name} while resolving ${moduleName}: ${error.stack}`); } } }