Yarn 2 issue: YN0002: vue-docgen-api@npm:4.38.1 doesn't provide vue (p363e3), requested by @vue/compiler-sfc
See original GitHub issueCurrent 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:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Oh great !!! I’ll make sure this is fixed ASAP
That was very fast! Thanks!