Skip to content

[BUG] find-dupes with optional peerDependenciesMeta #2265

@dennis-c

Description

@dennis-c

Current Behavior:

My application has a nested dependency (3 levels deep) of a public package using the peerDependenciesMeta to mark peerDependencies as optional.

When running npm find-dupes I get the following error:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
...
npm ERR! Could not resolve dependency:
npm ERR! peerOptional type-fest@"^0.13.1" from @pmmmwh/react-refresh-webpack-plugin@0.4.3
npm ERR! node_modules/@pmmmwh/react-refresh-webpack-plugin

Expected Behavior:

Not get an error

Steps To Reproduce:

run npm find-dupes on something with uninstalled optional dependencies

(I could make a test repo if you need one?)

Environment:

  • OS: MacOs Catalina
  • Node: 15.3.0
  • npm: 7.0.14

Metadata

Metadata

Assignees

Labels

Bugthing that needs fixingPriority 1high priority issueRelease 7.xwork is associated with a specific npm 7 release

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions