Skip to content

Peer dependency incorrectly met when using Yarn 3.x #2144

@toymachiner62

Description

@toymachiner62

Describe the bug
I upgraded to yarn 3.x and now I have a project that is showing this error

$ yarn install
➤ YN0000: ┌ Resolution step
➤ YN0002: │ @stoplight/spectral-cli@npm:6.3.0 doesn't provide rollup (p8903b), requested by @rollup/plugin-commonjs
➤ YN0000: │ Some peer dependencies are incorrectly met; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code
➤ YN0000: └ Completed

To Reproduce

Create a project with @stoplight/spectral-cli as a devDependency and run $ yarn install with the latest version of yarn.

Expected behavior
No peer dependency error

Environment (remove any that are not applicable):

  • OS: macOS

Metadata

Metadata

Assignees

Labels

CLICLI componentreleasedt/bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions