Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPM v7 could not resolve peer dependency for vue 3 #110

Open
dspinov opened this issue Aug 20, 2021 · 2 comments
Open

NPM v7 could not resolve peer dependency for vue 3 #110

dspinov opened this issue Aug 20, 2021 · 2 comments

Comments

@dspinov
Copy link

dspinov commented Aug 20, 2021

Step to reproduce

Using NPM v7 to install vue-wait v1.5.2 we have an error message about the unresolved dependency tree.

Expected Behavior

It should be worked without any error or warning.

Actual Behavior

There is an error from npm about the unresolved dependency tree:

npm ERR! Could not resolve dependency:
npm ERR! peer vue@"^2.5.16" from vue-wait@1.5.2
npm ERR! node_modules/vue-wait
npm ERR!   vue-wait@"*" from the root project

Environment

vue: 3.2.4
vue-wait: 1.5.2

Suggested solution

Add dependency range into the peer dependencies:

"peerDependencies": {
  "vue": ""^2.5.16 || ^3.0.0",
}
@mesa4
Copy link

mesa4 commented Nov 17, 2021

@dspinov Hello, there is one known solution (it helps for me)

try this command in your terminal

npm i vue-wait --legacy-peer-deps

also there is a topic about flag --legacy-peer-deps https://stackoverflow.com/questions/66020820/npm-when-to-use-force-and-legacy-peer-deps

@galaxyblur
Copy link

The above solution does not work for me. For every package I install that requires vue >= 3, I have to use the --legacy-peer-deps flag. The right solution is what was originally posted: if this library is truly compatible with Vue 3, then changing peerDependencies as described should not be a problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants