Skip to content

Cypress v14.0.0 is not compatible with cypress-axe #30896

@wlsf82

Description

@wlsf82

Current behavior

After upgrading a project that used cypress version 13.17.0 to cypress version 14.0.0, it fails to install other dependencies.

These other dependencies are axe-core version 4.10.2, and cypress-axe version 1.5.0.

Below is the error returned when running npm install.

npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: [email protected]
npm error Found: [email protected]
npm error node_modules/cypress
npm error   dev cypress@"^14.0.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peer cypress@"^10 || ^11 || ^12 || ^13" from [email protected]
npm error node_modules/cypress-axe
npm error   dev cypress-axe@"^1.5.0" from the root project
npm error
npm error Conflicting peer dependency: [email protected]
npm error node_modules/cypress
npm error   peer cypress@"^10 || ^11 || ^12 || ^13" from [email protected]
npm error   node_modules/cypress-axe
npm error     dev cypress-axe@"^1.5.0" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /Users/walmyr/.npm/_logs/2025-01-16T22_14_15_735Z-eresolve-report.txt
npm error A complete log of this run can be found in: /Users/walmyr/.npm/_logs/2025-01-16T22_14_15_735Z-debug-0.log

Desired behavior

I wanted to be able to continue using cypress-axe with Cypress's latest version.

Test code to reproduce

npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: [email protected]
npm error Found: [email protected]
npm error node_modules/cypress
npm error   dev cypress@"^14.0.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peer cypress@"^10 || ^11 || ^12 || ^13" from [email protected]
npm error node_modules/cypress-axe
npm error   dev cypress-axe@"^1.5.0" from the root project
npm error
npm error Conflicting peer dependency: [email protected]
npm error node_modules/cypress
npm error   peer cypress@"^10 || ^11 || ^12 || ^13" from [email protected]
npm error   node_modules/cypress-axe
npm error     dev cypress-axe@"^1.5.0" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /Users/walmyr/.npm/_logs/2025-01-16T22_14_15_735Z-eresolve-report.txt
npm error A complete log of this run can be found in: /Users/walmyr/.npm/_logs/2025-01-16T22_14_15_735Z-debug-0.log

Cypress Version

14.0.0

Node version

22.12.0

Operating System

macOs 15.1.1

Debug Logs

Other

No response

Metadata

Metadata

Assignees

Labels

v14.0.0 🐛Issue present since 14.0.0

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions