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 plugins - cypress-web-vitals and cypress-real-events #30913

Open
rafalkrzapa opened this issue Jan 18, 2025 · 2 comments
Labels
stage: awaiting external fix A 3rd party bug in Cypress - awaiting release v14.0.0 🐛 Issue present since 14.0.0

Comments

@rafalkrzapa
Copy link

rafalkrzapa commented Jan 18, 2025

Current behavior

Hi!
When I want to run my tests with plugins like: cypress-web-vitals and cypress-real-events

I have a logs on gitlab like

npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: cypress-real-events@1.13.0
npm error Found: cypress@14.0.0
npm error node_modules/cypress
npm error   dev cypress@"^14.0.0" from the root project
npm error   peer cypress@">=6.2.0" from cypress-mochawesome-reporter@3.8.2
npm error   node_modules/cypress-mochawesome-reporter
npm error     dev cypress-mochawesome-reporter@"^3.8.2" from the root project
npm error   3 more (cypress-plugin-steps, cypress-terminal-report, cypress-visual-regression)
npm error
npm error Could not resolve dependency:
npm error peer cypress@"^4.x || ^5.x || ^6.x || ^7.x || ^8.x || ^9.x || ^10.x || ^11.x || ^12.x || ^13.x" from cypress-real-events@1.13.0
npm error node_modules/cypress-real-events
npm error   dev cypress-real-events@"^1.13.0" from the root project
npm error   peer cypress-real-events@"^1.x" from cypress-web-vitals@4.1.2
npm error   node_modules/cypress-web-vitals
npm error     dev cypress-web-vitals@"^4.1.2" from the root project
npm error
npm error Conflicting peer dependency: cypress@13.17.0
npm error node_modules/cypress
npm error   peer cypress@"^4.x || ^5.x || ^6.x || ^7.x || ^8.x || ^9.x || ^10.x || ^11.x || ^12.x || ^13.x" from cypress-real-events@1.13.0
npm error   node_modules/cypress-real-events
npm error     dev cypress-real-events@"^1.13.0" from the root project
npm error     peer cypress-real-events@"^1.x" from cypress-web-vitals@4.1.2
npm error     node_modules/cypress-web-vitals
npm error       dev cypress-web-vitals@"^4.1.2" 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.

Desired behavior

No response

Test code to reproduce

npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: cypress-real-events@1.13.0
npm error Found: cypress@14.0.0
npm error node_modules/cypress
npm error   dev cypress@"^14.0.0" from the root project
npm error   peer cypress@">=6.2.0" from cypress-mochawesome-reporter@3.8.2
npm error   node_modules/cypress-mochawesome-reporter
npm error     dev cypress-mochawesome-reporter@"^3.8.2" from the root project
npm error   3 more (cypress-plugin-steps, cypress-terminal-report, cypress-visual-regression)
npm error
npm error Could not resolve dependency:
npm error peer cypress@"^4.x || ^5.x || ^6.x || ^7.x || ^8.x || ^9.x || ^10.x || ^11.x || ^12.x || ^13.x" from cypress-real-events@1.13.0
npm error node_modules/cypress-real-events
npm error   dev cypress-real-events@"^1.13.0" from the root project
npm error   peer cypress-real-events@"^1.x" from cypress-web-vitals@4.1.2
npm error   node_modules/cypress-web-vitals
npm error     dev cypress-web-vitals@"^4.1.2" from the root project
npm error
npm error Conflicting peer dependency: cypress@13.17.0
npm error node_modules/cypress
npm error   peer cypress@"^4.x || ^5.x || ^6.x || ^7.x || ^8.x || ^9.x || ^10.x || ^11.x || ^12.x || ^13.x" from cypress-real-events@1.13.0
npm error   node_modules/cypress-real-events
npm error     dev cypress-real-events@"^1.13.0" from the root project
npm error     peer cypress-real-events@"^1.x" from cypress-web-vitals@4.1.2
npm error     node_modules/cypress-web-vitals
npm error       dev cypress-web-vitals@"^4.1.2" 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.

Cypress Version

14.0.0

Node version

v20.18.0

Operating System

22.04.1-Ubuntu

Debug Logs

Other

No response

@MikeMcC399
Copy link
Contributor

@rafalkrzapa

You can check with the repositories, which supply the two plugins you mention, to see if they are building a new release that supports Cypress v14:

@jennifer-shehane jennifer-shehane added v14.0.0 🐛 Issue present since 14.0.0 stage: awaiting external fix A 3rd party bug in Cypress - awaiting release labels Jan 18, 2025
@AtofStryker
Copy link
Contributor

I created a PR for Cypress 14 support in cypress-web-vitals. It looks like this PR added Cypress 14 support in cypress-real-events

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stage: awaiting external fix A 3rd party bug in Cypress - awaiting release v14.0.0 🐛 Issue present since 14.0.0
Projects
None yet
Development

No branches or pull requests

4 participants