Skip to content

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

@dspinov

Description

@dspinov

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",
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions