Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

Properly track dev edges on virtual root nodes #214

Closed
wants to merge 1 commit into from

Conversation

isaacs
Copy link
Contributor

@isaacs isaacs commented Jan 29, 2021

If the virtualRoot node has a sourceReference, and that sourceReference
node would get its devDep edges loaded, then the virtualRoot node should
as well.

This caused a very useless ERESOLVE error, which could not be properly
forced away, when installing in a project that had conflicting peer deps
in its dev tree.

References

@isaacs isaacs requested a review from nlf January 29, 2021 00:40
@isaacs isaacs force-pushed the isaacs/maintain-dev-edge-on-root-virtual-node branch 2 times, most recently from 45fe2c9 to 51aa834 Compare January 29, 2021 01:02
@isaacs isaacs force-pushed the isaacs/maintain-dev-edge-on-root-virtual-node branch from 51aa834 to f5be3c4 Compare January 29, 2021 01:23
If the virtualRoot node has a sourceReference, and that sourceReference
node would get its devDep edges loaded, then the virtualRoot node should
as well.

This caused a very useless ERESOLVE error, which could not be properly
forced away, when installing in a project that had conflicting peer deps
in its dev tree.

Related to: npm/cli#2548
@isaacs isaacs force-pushed the isaacs/maintain-dev-edge-on-root-virtual-node branch from f5be3c4 to 683b5ac Compare January 29, 2021 23:36
Copy link
Contributor

@nlf nlf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this makes sense!

@isaacs isaacs closed this in 15e81dc Feb 1, 2021
@wraithgar wraithgar deleted the isaacs/maintain-dev-edge-on-root-virtual-node branch April 22, 2021 17:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants