Skip to content

dependency conflict #25

@amit-srvic

Description

@amit-srvic

I am trying to use this repo for a PoC for a client and updated the dependencies to latest:

"dependencies": {
    "@types/chalk": "2.2.0",
    "@types/minimist": "1.2.2",
    "@types/node": "20.4.5",
    "chalk": "5.3.0",
    "jsome": "2.5.0",
    "minimist": "1.2.8",
    "rimraf": "5.0.1",
    "slash": "5.1.0",
    "testcafe": "3.1.0",
    "testcafe-browser-provider-saucelabs": "2.0.0",
    "testcafe-reporter-cucumber-json": "6.3.0",
    "ts-node": "10.9.1",
    "typescript": "3.9.6"
  },
  "devDependencies": {
    "@typescript-eslint/eslint-plugin": "3.6.1",
    "@typescript-eslint/parser": "3.6.1",
    "eslint": "8.46.0",
    "eslint-config-prettier": "8.9.0",
    "eslint-plugin-import": "2.28.0",
    "eslint-plugin-prettier": "5.0.0",
    "eslint-plugin-testcafe": "0.2.1",
    "mem": "9.0.2",
    "multiple-cucumber-html-reporter": "3.4.0",
    "prettier": "3.0.0"
  },

and getting the following error on npm install

npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: testcafe-poc@1.0
npm ERR! Found: testcafe@3.1.0
npm ERR! node_modules/testcafe
npm ERR!   testcafe@"3.1.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer testcafe@"1.x" from testcafe-reporter-cucumber-json@6.3.0
npm ERR! node_modules/testcafe-reporter-cucumber-json
npm ERR!   testcafe-reporter-cucumber-json@"6.3.0" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

Need more information on compatibility between testcafe-reporter-cucumber-json and testcafe latest versions.
I don't want to use --force unless it's the only option.

@hdorgeval any help would be highly appreciated.

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