jaredpalmer / cypress-image-snapshot

Catch visual regressions in Cypress
MIT License
887 stars 160 forks source link

Problems installing 4.0.1 #204

Open JJ opened 3 years ago

JJ commented 3 years ago

And I get this error if I try to install 4.0.1:

npm install --save-dev cypress-image-snapshot
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: poly-explorer-feature@0.0.1
npm ERR! Found: cypress@7.5.0
npm ERR! node_modules/cypress
npm ERR!   dev cypress@"^7.4.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer cypress@"^4.5.0" from cypress-image-snapshot@4.0.1
npm ERR! node_modules/cypress-image-snapshot
npm ERR!   dev cypress-image-snapshot@"^4.0.1" from the root project

package.json includes:

    "cypress": "^7.4.0",
aaryanporwal commented 3 years ago

I'm having the same issue, were you able to resolve it @JJ?

ghost commented 3 years ago

Same issue when you install the v7.5.0

JJ commented 3 years ago

No. I just decided not to use it, or any other kind of snapshot testing

ghost commented 3 years ago

@jaredpalmer do you have an idea?

drdreo commented 3 years ago

It can be fixed by installing it via npm install --legacy-peer-deps Although this is not the actual fix. They need to upgrade the peer-dependencies

xurion commented 3 years ago

Pretty sure this package is no longer maintained. Last update was Jan 2021 that only updated the Cypress peer dependency from 4.0.0 to 4.0.1. Cypress 4.0.1 was released February 2020 (year and a half ago at time of posting). Cypress has had three additional major version releases and is currently on 7.6.0.