-
Notifications
You must be signed in to change notification settings - Fork 609
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
[rush] ERROR: unacceptable kind of an object to dump (undefined) #5053
Comments
Likely a regression from [rush-lib] Support pnpm lockfile v9 #5009 |
@octogonz you are right. The following code caused this issue. rushstack/libraries/rush-lib/src/logic/pnpm/PnpmShrinkWrapFileConverters.ts Lines 51 to 64 in 724aa51
After I set the I will submit a PR to fix the issue later. |
Thank you! 🙏 |
FWIW, here is a repo that you can use to reproduce this error: https://github.com/lemke-ethan/rush-pnpm-unacceptable-kind-of-an-object-to-dump. |
🚀 This is fixed in Rush 5.147.2 |
Summary
In this Zulip thread, Ethan reports an error that appears to be a regression introduced by Rush 5.146.0:
ERROR: unacceptable kind of an object to dump [object Undefined]
This is the YAML serializer telling us that it encountered an
undefined
value in one of the objects to be serialized (which is not supported by strict serializers).I'm guessing it might be this change in PnpmShrinkWrapFileConverters.ts.
Repro steps
(We haven't isolated a repro yet. I was unable to repro in the Rush Stach repository.)
Expected result:
Actual result:
Details
rush --debug update
prints:Standard questions
Please answer these questions to help us investigate your issue more quickly:
rushVersion
from rush.json?node -v
)?The text was updated successfully, but these errors were encountered: