-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
findOriginalKeys is not a function or its return value is not iterable #16825
Comments
Thank you @yharaskrik for reporting this. Can you provide a test repo where I can get this error. I tried generating workspace with nest locally, but I could not get the error (the version I used was 16.1.1 but afaik nothing in this patch could be influencing lock file parsing). |
Hmm ya the patch may have affected it I don't think I tried after updating to 16.1.1. will get back to you! |
Hmm ya still happening for me on 16.1.1, will see if I can create a repro. |
Haven't been able to repro it yet but I have some additional info. Reading the
There is no snapshot with the same version as the Node being checked (7.0.0) |
Miro I dm'd you out lockfile. Not sure if its helpful or not. |
reproduction to generate error: (from #16875)
package.json generated
nx-report:
|
Thank you @yharaskrik, I found the issue thanks to your "wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0:
version "7.0.0"
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
dependencies:
ansi-styles "^4.0.0"
string-width "^4.1.0"
strip-ansi "^6.0.0" The second key gets ignored. I will try to create a fix as soon as possible. |
Amazing thank you! |
My team is experiencing this bug as well, is there any sort of temporary workaround that can be done in the short term? |
Would also love to know if there is a workaround for this for the time being. |
Your new lock file on the right incorrectly maps |
Haha figured so. I think it's a dev dependency from what I can't tell and out CI is entirely green 🤷♂️ but it would be great to have it patched lll be on the lookout! |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Current Behavior
Generating a lockfile fails
App builds correctly just the lockfile fails to generate
Expected Behavior
Should generate a lockfile correctly.
GitHub Repo
No response
Steps to Reproduce
Generate a nest app and try and use the generate package json flag to create a pruned lockfile.
Nx Report
The text was updated successfully, but these errors were encountered: