codeceptjs / CodeceptJS

Supercharged End 2 End Testing Framework for NodeJS
http://codecept.io
MIT License
4.11k stars 722 forks source link

@codeceptjs/ui dependency seems to be blocking update to codeceptjs 3.6.2 #4368

Closed incoming-th closed 4 months ago

incoming-th commented 4 months ago

What are you trying to achieve?

Try to update to codeceptjs 3.6.2 via npm update or npm update, or removing package-lock.json and node_modules folder then npm install.

I should be doing something wrong, because when creating a new codeceptjs project in an empty directory, it installs @codeceptjs/ui ^1.1.1 in the package.json.

What do you get instead?

npm resolution error report

While resolving: codeceptjs@0.1.0 Found: codeceptjs@3.6.2 node_modules/codeceptjs dev codeceptjs@"^3.6.2" from the root project

Could not resolve dependency: peer codeceptjs@"3.5.14" from @codeceptjs/ui@1.1.1 node_modules/@codeceptjs/ui dev @codeceptjs/ui@"^1.1.1" from the root project

Fix the upstream dependency conflict, or retry this command with --force or --legacy-peer-deps to accept an incorrect (and potentially broken) dependency resolution.

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: 
npm ERR! Found: codeceptjs@3.6.2
npm ERR! node_modules/codeceptjs
npm ERR!   dev codeceptjs@"^3.6.2" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer codeceptjs@"3.5.14" from @codeceptjs/ui@1.1.1
npm ERR! node_modules/@codeceptjs/ui
npm ERR!   dev @codeceptjs/ui@"^1.1.1" 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.
npm ERR! 
npm ERR! 
npm ERR! For a full report see:
npm ERR! /home/test/.npm/_logs/2024-05-29T16_38_42_433Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: /home/test/.npm/_logs/2024-05-29T16_38_42_433Z-debug-0.log

image

Details

{
    "name": "codeceptjs",
    "version": "0.1.0",
    "private": true,
    "scripts": {
        "codeceptjs": "codeceptjs run --steps",
        "codeceptjs:headless": "HEADLESS=true codeceptjs run --steps",
        "codeceptjs:ui": "codecept-ui --app",
        "codeceptjs:demo": "codeceptjs run --steps -c node_modules/@codeceptjs/examples",
        "codeceptjs:demo:headless": "HEADLESS=true codeceptjs run --steps -c node_modules/@codeceptjs/examples",
        "codeceptjs:demo:ui": "codecept-ui --app  -c node_modules/@codeceptjs/examples"
    },
    "devDependencies": {
        "@codeceptjs/configure": "^1.0.1",
        "@codeceptjs/examples": "^1.2.4",
        "@codeceptjs/ui": "^1.1.1",
        "codeceptjs": "^3.6.2",
        "playwright": "^1.44.1"
    }
}
incoming-th commented 4 months ago

@kobenguyent Thanks and sorry, didn't see it was a dup of https://github.com/codeceptjs/ui/issues/258