Skip to content

Commit

Permalink
Hide ModuleNotFound error in pnpm pnp mode
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinpalkovic committed Jun 23, 2023
1 parent 6d0596f commit 9542f7c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/lib/cli/src/js-package-manager/PNPMProxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,9 @@ export class PNPMProxy extends JsPackageManager {

return packageJSON;
} catch (error) {
console.error('Error while fetching package version in PNPM PnP mode:', error);
if (error.code !== 'MODULE_NOT_FOUND') {
console.error('Error while fetching package version in PNPM PnP mode:', error);
}
return null;
}
}
Expand Down

0 comments on commit 9542f7c

Please sign in to comment.