Skip to content

[BUG] <Documentation Missing on Local Paths and Peer Dependencies> #3736

Closed
@dillonledoux

Description

@dillonledoux

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

If a package is being referenced using a local path designated in the package.json file, any peer dependencies of the referenced package will not be downloaded and installed. The local package must first be packed for it to download the packages.

Expected Behavior

The behavior of a package needing to be packed before peer dependencies are installed should be in the documentation in this section or npm should be modified to install peer dependencies from packages using local paths.

Steps To Reproduce

  1. Using npm 7 and an angular package with a peer dependency
  2. Run ng build
  3. In another app, reference the above package using a local path in the local dist directory
  4. Build the app using ng build
  5. You should notice the peer dependency can't be resolved

Environment

  • OS: Windows 10, build 1909
  • Node: 16.9.0
  • npm: 7.19.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixingNeeds Triageneeds review for next stepsRelease 7.xwork is associated with a specific npm 7 release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions