Skip to content

Conflicting semantic-release and semantic-release/npm dependencies #331

Description

@jusa3

I get a dependecy conflict with semantic-release when installing the latest release of this package:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: @ts4nfdi/terminology-service-suite@3.1.0
npm ERR! Found: semantic-release@24.2.1
npm ERR! node_modules/semantic-release
npm ERR!   dev semantic-release@"^24.2.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer semantic-release@"^19.x" from @amanda-mitchell/semantic-release-npm-multiple@3.11.1
npm ERR! node_modules/@amanda-mitchell/semantic-release-npm-multiple
npm ERR!   dev @amanda-mitchell/semantic-release-npm-multiple@"^3.11.1" from the root project

Furthermore, the semantic-release/npm v12.0.1 seems to also need a higher semantic-release version than defined in your peer deps.
In your package.json, you have two versions of semantic-release. How is this to be understood?

"devDependencies": {
    "@commitlint/config-conventional": "^19.0.0",
    "commitlint": "^19.0.0",
    "husky": "4.x",
    "jest": "^29.7.0",
    "lint-staged": "^15.0.1",
    "prettier": "^3.0.2",
    "semantic-release": "^24.2.0"
  },
  "dependencies": {
    "@semantic-release/npm": "^12.0.1"
  },
  "peerDependencies": {
    "semantic-release": "^19.x"
  }

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