Giter Site home page Giter Site logo

Comments (11)

weyert avatar weyert commented on May 18, 2024 3

Guess, we should make cypress a peer dependency?

from cypress-testing-library.

jcreamer898 avatar jcreamer898 commented on May 18, 2024 3

Thanks @kentcdodds!

from cypress-testing-library.

kaiyoma avatar kaiyoma commented on May 18, 2024 3

What happened here? It looks like the PR was undone and this types package is still doing a full install of Cypress. We're seeing two different versions of Cypress in our node_modules because of this. Why aren't peer dependencies being used?

from cypress-testing-library.

nhducit avatar nhducit commented on May 18, 2024 2

I think you guys can workaround by using yarn resolution

package.json
https://yarnpkg.com/lang/en/docs/selective-version-resolutions/

  "resolutions": {
    "cypresss": "1.2.3" // use whichever version you want
  }

from cypress-testing-library.

kentcdodds avatar kentcdodds commented on May 18, 2024 2

(Note, that should work because the types are now within the module)

from cypress-testing-library.

kentcdodds avatar kentcdodds commented on May 18, 2024 1

I just made a PR: DefinitelyTyped/DefinitelyTyped#41917

Closing here because there's nothing we can do in this repo at this point :) Thanks! (Also, sorry it took me so long to address this. I kinda took a break and it's been hard to get back on top of things 😅)

from cypress-testing-library.

kentcdodds avatar kentcdodds commented on May 18, 2024 1

Try @testing-library/[email protected] :)

from cypress-testing-library.

jcreamer898 avatar jcreamer898 commented on May 18, 2024

Same issue causing our Jenkins process to asplode. Haha.

Curious, why is @types/testing-library__cypress even listed as a dependency? Shouldn't that be up to the consumer of this project to install?

I bet this would fix itself if @types/testing-library__cypress was moved to devDependencies eh?

from cypress-testing-library.

Niceplace avatar Niceplace commented on May 18, 2024

I'm experiencing the same issue here but @testing-library/cypress": "5.0.2" is already in our devDependencies :/

from cypress-testing-library.

kentcdodds avatar kentcdodds commented on May 18, 2024

@weyert's suggestion is correct. It should be a peerDep with a very generous version range.

from cypress-testing-library.

jbojcic1 avatar jbojcic1 commented on May 18, 2024

I still have this issue. I had Cypress 4.12.1 and I installed @testing-library/cypress 6.0.1 which has @types/testing-library__cypress ^5.0.6 as a dependency. Ended up with two Cypress versions 4.12.1 and 5.0.0 which was breaking my CI build.

from cypress-testing-library.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.