question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Yarn 2 issue: YN0002: vue-docgen-api@npm:4.38.1 doesn't provide vue (p363e3), requested by @vue/compiler-sfc

See original GitHub issue

Current behavior

  • Trying to use a project that depends on vue-docgen-api@4.38.1
  • When using Yarn 2 (yarn -v = 2.4.1), the following message appears:
$ yarn
...
➤ YN0002: │ vue-docgen-api@npm:4.38.1 doesn't provide vue (p363e3), requested by @vue/compiler-sfc
...
$ yarn explain peer-requirements p363e3
➤ YN0000: vue-docgen-api@npm:4.38.1 doesn't provide vue, breaking the following requirements:

➤ YN0000: @vue/compiler-sfc@npm:3.0.11 [fc8b1] → 3.0.11 ✘

To reproduce

package.json:

{
  "dependencies": {
    "vue-docgen-api": "^4.38.1"
  }
}

Yarn 2:

$ yarn set version berry
$ yarn

Expected behavior After reading through Yarn 2’s docs (https://yarnpkg.com/advanced/error-codes#yn0002---missing_peer_dependency), the behavior I expect here is for vue-docgen-api to clearly define it’s dependency on vue, likely as a peerDependency.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
elevatebartcommented, Aug 17, 2021

Oh great !!! I’ll make sure this is fixed ASAP

0reactions
PhyberApexcommented, Aug 17, 2021

That was very fast! Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Yarn2 compatibility · Issue #5135 · vuejs/vue-cli - GitHub
Create the project and run yarn serve successfully. What is actually happening? The shell output some errors: ➤ YN0050: The --registry option ...
Read more >
"Cannot find module '@vue/compiler-sfc/package.json ...
The commands to get it working are: yarn add vue@next yarn add @vue/compiler-sfc -D. Note the -D to add it to the devDependencies...
Read more >
@vue/compiler-sfc | Yarn - Package Manager
Lower level utilities for compiling Vue Single File Components ... as a dependency of the main vue package and can be accessed as...
Read more >
Provide / Inject - Vue.js
We can solve props drilling with provide and inject . A parent component can serve as a dependency provider for all its descendants....
Read more >
Vue.js | PyCharm Documentation - JetBrains
PyCharm provides support for the Vue.js building blocks of HTML, CSS, and JavaScript with Vue.js-aware code completion for components, including ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found