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
Invalid string length #5056
Comments
Print also the value of depPath |
I experienced this on macOS 12.6 with pnpm 7.13.0 and node 16.16.0. |
Seems like running
Solved the problem for me |
Upgrade from v7 to v8, same issue.
Nope. |
I hit this in DefinitelyTyped/DefinitelyTyped#67455; thankfully I can "work around" this, but it does seem like there's a huge string allocated. I do wonder if this could just be an object hash instead of a serialized string. (That or it's #7079 which is the same?) |
Yes, we can change it to an object hash. We need it for storing side-effects cache of dependencies (TBH, maybe we could store it simply by the dependency name but I am afraid that packages with differing dependencies may by built differently). However, it would be nice to be able to reproduce it. As a temporary fix, I think you can just disable side effects cache by setting side-effects-cache to |
If you're solely trying to verify it by hand, this happens on DefinitelyTyped for any change which modifies node's types; modifying a random file in $ pnpm ls --depth Infinity --parseable --filter '...@types/**[HEAD^1]...' (Or revert DefinitelyTyped/DefinitelyTyped#67460) |
My instructions were incomplete; I'll test the PR for you, though! |
when I run
pnpm i
second time, this error showwhen I run
rm -rf /XXX/pnpm/store/v3
can fix itpnpm version:
7.5.2
Code to reproduce the issue:
Expected behavior:
Additional information:
node -v
v16.14.0
macOS, Linux
The text was updated successfully, but these errors were encountered: