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 7.15+ is no longer defaulting to --strict-peer-dependencies #5766
Comments
@zkochan was this an intentional change? @elliot-nelson observed that |
I don't think it's a breaking change because it removes errors. Vice versa would be a breaking change. |
Looks like it was actually introduced in a patch release:
|
A couple counterpoints:
if (semver.gte(this.rushConfiguration.packageManagerToolVersion, '7.0.0')) {
// pnpm >= 7.0.0 handles peer dependencies strict by default
if (this.rushConfiguration.pnpmOptions.strictPeerDependencies === false) {
args.push('--no-strict-peer-dependencies');
}
} else {
// pnpm < 7.0.0 does not handle peer dependencies strict by default
if (this.rushConfiguration.pnpmOptions.strictPeerDependencies) {
args.push('--strict-peer-dependencies');
}
} |
I am sorry that this caused problems on your end and it was confusing but there was no other way. There was a storm of issues about these errors. Also, lots of angry tweets. Lots of messages in the discord chatrooms. And questions on stackoverflow. Turning the setting off was the only way out. And up to this point nobody complained about it. |
I understand. That makes sense. Perhaps it could have been a larger version bump? In any case, Rush should probably change its logic to explicitly set all the important options to avoid relying on assumptions about defaults. |
It could be a larger bump. It just felt like a bug fix because it removes errors. |
Closing the issue, since this behavior is "by design", and there's nothing else we can do at this point. We will update Rush's logic instead. |
Fixed in microsoft/rushstack#3828 |
pnpm version: 7.17.1
Code to reproduce the issue:
Expected behavior:
(This expected behavior occurs as recently as pnpm 7.13; broken in 7.15)
Actual behavior:
Additional information:
node -v
prints: v16.15.0The text was updated successfully, but these errors were encountered: