spectral icon indicating copy to clipboard operation
spectral copied to clipboard

Peer dependency incorrectly met when using Yarn 3.x

Open toymachiner62 opened this issue 2 years ago • 2 comments

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

toymachiner62 avatar Apr 29 '22 20:04 toymachiner62

Witnessing same error, post this log the workflow is stuck for 1-2 hours. Any solution for this?

amanarch96 avatar Jul 22 '22 11:07 amanarch96

Same issue. Is there a workaround?

punkpeye avatar Aug 21 '22 23:08 punkpeye

:tada: This issue has been resolved in version @stoplight/spectral-cli-v6.6.0 :tada:

The release is available on npm package (@latest dist-tag)

Your semantic-release bot :package::rocket:

stoplight-bot avatar Oct 24 '22 20:10 stoplight-bot