Skip to content

Commit

Permalink
Merge pull request #23195 from storybookjs/valentin/hide-module-not-f…
Browse files Browse the repository at this point in the history
…ound-error-in-pnpm-pnp-mode

PNPM: Hide ModuleNotFound error in pnpm pnp mode
  • Loading branch information
valentinpalkovic authored Jun 23, 2023
2 parents 6d0596f + 9542f7c commit b5bee64
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 b5bee64

Please sign in to comment.