meinaart / cypress-plugin-snapshots

Plugin for snapshot tests in Cypress.io
MIT License
489 stars 117 forks source link

(bug) peerDependency on Cypress 4.x #232

Open dwilches opened 1 year ago

dwilches commented 1 year ago

Describe the bug The package.json mentions the latest version of this plugin is only compatible with Cypress 4.x:

  "peerDependencies": {
    "cypress": "^4.5.0"
  },

Is this a mistake and that should be >4.5.0 or really this plugin is only compatible with a version of Cypress released on 2020?

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: my-project@1.0.0
npm ERR! Found: cypress@12.6.0
npm ERR! node_modules/cypress
npm ERR!   dev cypress@"^12.6.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer cypress@"^4.5.0" from cypress-plugin-snapshots@1.4.4
npm ERR! node_modules/cypress-plugin-snapshots
npm ERR!   cypress-plugin-snapshots@"*" 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! 
ninaDeimos commented 1 year ago

Is there any update on this? Or if this repository is no longe maintained, is there a successor of this package?

ozkoidi commented 11 months ago

I'm also waiting for this to be resolved. Every time I run npm install I get the warning about that dependency

image

marabesi commented 10 months ago

+1

SimonLandeholm commented 8 months ago

You can use npm i --legacy-peer-deps as a workaround meanwhile.