meinaart / cypress-plugin-snapshots

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

(bug) npm i cypress-plugin-snapshots - npm error while installing #239

Open NikitaSheff opened 3 months ago

NikitaSheff commented 3 months ago

Cypress v13.11

npm i cypress-plugin-snapshots
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: cypress@1.0.0
npm error Found: cypress@13.11.0
npm error node_modules/cypress
npm error   dev cypress@"^13.11.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peer cypress@"^4.5.0" from cypress-plugin-snapshots@1.4.4
npm error node_modules/cypress-plugin-snapshots
npm error   cypress-plugin-snapshots@"*" 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
MaxAtoms commented 2 months ago

There was a change 8 months ago to simply allow any Cypress version higher than 4.5.0: https://github.com/meinaart/cypress-plugin-snapshots/commit/a8bd88380db56905f5df6fe27cb4eddb7b809b9e

There has not been a release to npm, however.

dlangsam commented 2 months ago

I'm running into this too

DavidRNogueira commented 2 months ago

Also seeing this issue

daniellizik commented 2 months ago

soo....this package is not maintained?

DavidRNogueira commented 2 months ago

soo....this package is not maintained?

Yeah I gave up on this package. I am now using this one, has worked really well: https://github.com/haim-io/cypress-image-diff

suchipi commented 2 months ago

There was a change 8 months ago to simply allow any Cypress version higher than 4.5.0: a8bd883

There has not been a release to npm, however.

I published the fix to npm in a fork: https://www.npmjs.com/package/@suchipi/cypress-plugin-snapshots/v/1.4.5

I'm not gonna promise to maintain the fork, but if people wanna use this one instead of cypress-image-diff, the fork should make the npm install error go away.