Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wlsf82 opened this issue Jan 16, 2025 · 5 comments
Closed

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

wlsf82 opened this issue Jan 16, 2025 · 5 comments
Assignees
Labels
v14.0.0 🐛 Issue present since 14.0.0

Comments

@wlsf82
Copy link

wlsf82 commented Jan 16, 2025

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

@wlsf82
Copy link
Author

wlsf82 commented Jan 16, 2025

Cc. @jennifer-shehane.

@wlsf82
Copy link
Author

wlsf82 commented Jan 16, 2025

Should this be an issue to https://github.com/component-driven/cypress-axe?

@wlsf82
Copy link
Author

wlsf82 commented Jan 16, 2025

Steps to reproduce are:

  1. Create a project with the latest Cypress version (14.0.0)
  2. Try to install axe-core and cypress-axe (e.g., npm i axe-core cypress-axe -D)

It fails with the following output:

npm i axe-core cypress-axe -D
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
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@"*" 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_26_38_523Z-eresolve-report.txt
npm error A complete log of this run can be found in: /Users/walmyr/.npm/_logs/2025-01-16T22_26_38_523Z-debug-0.log

@jennifer-shehane
Copy link
Member

We've opened a PR to cypress-axe here: component-driven/cypress-axe#180

@wlsf82
Copy link
Author

wlsf82 commented Jan 30, 2025

I'm closing this issue since component-driven/cypress-axe#180 has been merged and a new version has been released.

By the way, it's working fine.

@wlsf82 wlsf82 closed this as completed Jan 30, 2025
@jennifer-shehane jennifer-shehane removed the stage: awaiting external fix A 3rd party bug in Cypress - awaiting release label Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v14.0.0 🐛 Issue present since 14.0.0
Projects
None yet
Development

No branches or pull requests

3 participants