Cucumber-js: new unsatisfied peer dependencies with latest verion

Created on 21 Dec 2020  路  5Comments  路  Source: cucumber/cucumber-js

i've been receiving renovate PRs for the new v7 in some of my projects now that you've promoted it to latest. i had upgraded a few of my projects to the prerelease of v7 already without issue.

however, i'm now seeing some new failures due to unsatisfied peer dependencies with the new version. you can see an example of this in this build output. i use npm ls to ensure that peer dependencies are compatible (it will exit non-zero if there is a conflict).

the projects that i'm seeing these issues in are not react projects, so i have no reason to depend on the peer packages other than because of the use of cucumber, so i would prefer not to depend on them directly. could you please satisfy these peer dependencies on your end by making them prod dependencies of cucumber?

bug since-7

All 5 comments

Thanks for raising @travi

These React-related dependencies come via our HTML formatter and some React libraries it uses.

peer dep missing: react@^16.3.2, required by [email protected]
peer dep missing: react-dom@^16.3.3, required by [email protected]

There's already a PR merged to allow React 17 for react-accessible-accordion here https://github.com/springload/react-accessible-accordion/pull/307 so hopefully that'll get released shortly and we can bring that in.

peer dep missing: @types/react@>=16, required by [email protected]

I'll raise it with that project. I don't think it should require consuming projects to install types for react.

sounds great. thanks a lot for digging in on this :)

Has there been any update on this? We are also encountering this when installing version 7.0.0.
npm ERR! peer dep missing: @types/react@>=16, required by [email protected]

Hey @ericlanteigne-quest - the fix is done and this should be released soon.

7.1.0 was released today including the fix for this https://www.npmjs.com/package/@cucumber/cucumber/v/7.1.0

Was this page helpful?
0 / 5 - 0 ratings

Related issues

NoNameProvided picture NoNameProvided  路  5Comments

protoman92 picture protoman92  路  3Comments

jfstephe picture jfstephe  路  4Comments

dblooman picture dblooman  路  7Comments

nicojs picture nicojs  路  3Comments