-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
[BUG] dependency loses transitive dependency #3062
Comments
package-lock is not published, so the lockfile format of a dependency has no impact on consuming projects. |
Gotcha and thank you for the quick remark! I've edited the title thusly and a mistake in the report. The dependency :chain: got me a bit confused at some point. Now it should be correctly described. :-) |
Another note: |
Even fishier, our commit |
Ah, I notice that this made the switch to the v7 package-lock in our project. It could be a migration bug. Sorry for all the addenda; this really is quite a ride. 🎢 🎡 |
Ok so ... I had to dig through the several versions of these dependencies to figure out that the module raising the error wasn't supposed to be installed any longer in the version I still had in |
am i understanding correctly that this isn't an issue and the dependency that was removed wasn't a bug? |
I needed to recap, because this thing is a bit of a 🐇 🕳️ . It is an issue, and the best I can describe it thus far is that npm was trating |
interesting. let me restate the problem here to make sure i'm understanding exactly what's going on. in my project A, i have a dependency on package B@1.0.0. B@1.0.0 has a dependency on C@1.0.0. i've already run i now run does this sound correct? is the extraneous dependency still present in the |
Almost! Stop after having |
ah ha! ok, that helps a lot. thanks for talking that through with me. i'll see what i can do to reproduce this and investigate the bug |
is telling us that you have following your steps to reproduce above:
we get a list of errors about missing and invalid dependencies, after hand checking a few of these they all appear to be peer dependencies that were not installed or were installed at invalid versions due to the as for let's look at those dependencies:
the empty lines for the last two commands tell us that these packages do not have dependencies themselves, so that being the case, i'm not sure there's actually a bug here since it looks like what you end up with is a valid package tree aside from the missing/invalid peerDependencies. |
Yes, that is correct. Maybe part of the story got lost a bit here: We switched from I'm sorry if this costs you a lot of time to investigate and I really appreciate you looking into it. 🙏 Feel free to close the issue if you think it's not very productive. Thank you! |
no need to apologize at all! i'm happy to help. closing this since it seems ultimately there was no issue |
Note: I am not sure if this may be a duplicate, as there a some hundred issues around dependencies and I am not sure about keywords to narrow down the issue I ran into.
Current Behavior:
When I ran
npm update
in a project, a dependency (recharts
, see below)that introduced the v7 lockfile formatedit: should be no issue as per #3062 (comment) did not get (at least) one of its transitive dependencies pulled in. See also the issue filed against upstream: recharts/recharts#2525Here is the
package-lock.json
of our project:https://github.com/orangecms/pslab-desktop/blob/recharts-npm7-breakage/package-lock.json
It should include the dependency
math-expression-evaluator
, which is a transitive dependency coming fromreduce-css-calc
; see https://github.com/recharts/recharts/blob/e90a4e1d04cafe130c96316ac381abd0fa8c86d2/package.json#L68Aside, probably unrelated/irrelevant as per #3062 (comment):
Our dependency
recharts
switched to v7 just before this patch version release that I got in:https://github.com/recharts/recharts/blame/e90a4e1d04cafe130c96316ac381abd0fa8c86d2/package-lock.json
Additional note: I had to run
npm update --legacy-peer-deps
because of a specific depency:I cannot tell if this is related.
Expected Behavior:
Dependencies should be fully resolved.
Steps To Reproduce:
Checkout https://github.com/orangecms/pslab-desktop/blob/recharts-npm7-breakage, go back one commit, and run
npm update
.Environment:
The text was updated successfully, but these errors were encountered: