Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PNPM: Hide ModuleNotFound error in pnpm pnp mode #23195

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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