You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using yarn there are peerDependancy errors that are un-fixable for the end-user. Depending on yarn version or config these errors don't always get alerted - but they are still there and anyone strictly trying to clear these dependency warnings/errors can't do so. (for instance, our repo has yarn error YN0002 set to error -> thus blocking getting the latest version.
This issue started when upgrading from 1.18.6 -> 1.19.0 and the errors are:
➤ YN0002: │ testcafe-reporter-dashboard@npm:1.0.0-rc.1 doesn't provide fp-ts (pe5446), requested by io-ts-types
➤ YN0002: │ testcafe-reporter-dashboard@npm:1.0.0-rc.1 doesn't provide fp-ts (pe1a1d), requested by io-ts
➤ YN0002: │ testcafe-reporter-dashboard@npm:1.0.0-rc.1 doesn't provide fp-ts (pf261c), requested by monocle-ts
➤ YN0002: │ testcafe-reporter-dashboard@npm:1.0.0-rc.1 doesn't provide fp-ts (pc987e), requested by newtype-ts
I can't include these dependencies as yarn doesn't care that I have included them and follows its strict semantics that these peerDependancies should be bubbled up in every parent package (or they can just include them directly in the correct package). Notably, if it is included explicitly in the package json it must either be included in the testcafe-reporter-dashboard package.json, or marked as a peerDependancy in there and included in the testcafe package.json.
You can see why this only occurs on version 1.19.0, because if you look at the node_modules on 1.18.6, you can see fp-ts is installed correctly - but when you upgrade it disappears because testcafe-reporter-dashboard removes it as a dependency!
What is the Current behavior?
fp-ts is missing as a required package, but should be included causing a peer dependency error
What is the Expected behavior?
that error no longer occurs (as described in the scenario)
What is your public website URL? (or attach your complete example)
What is your Scenario?
When using yarn there are peerDependancy errors that are un-fixable for the end-user. Depending on yarn version or config these errors don't always get alerted - but they are still there and anyone strictly trying to clear these dependency warnings/errors can't do so. (for instance, our repo has yarn error
YN0002
set to error -> thus blocking getting the latest version.This issue started when upgrading from
1.18.6
->1.19.0
and the errors are:I can't include these dependencies as
yarn
doesn't care that I have included them and follows its strict semantics that these peerDependancies should be bubbled up in every parent package (or they can just include them directly in the correct package). Notably, if it is included explicitly in the package json it must either be included in the testcafe-reporter-dashboard package.json, or marked as a peerDependancy in there and included in the testcafe package.json.Either way, every package that includes another package that has a peerDependancy should reference it in some way - for reference https://dev.to/arcanis/implicit-transitive-peer-dependencies-ed0
You can see why this only occurs on version
1.19.0
, because if you look at thenode_modules
on1.18.6
, you can seefp-ts
is installed correctly - but when you upgrade it disappears becausetestcafe-reporter-dashboard
removes it as a dependency!What is the Current behavior?
fp-ts
is missing as a required package, but should be included causing a peer dependency errorWhat is the Expected behavior?
that error no longer occurs (as described in the scenario)
What is your public website URL? (or attach your complete example)
none
What is your TestCafe test code?
{
"private": true,
"name": "testcafe-test",
"version": "1.0.0",
"volta": {
"node": "16.15.1",
"yarn": "1.22.10"
},
"dependencies": {
"testcafe": "1.19.0"
}
}
Your complete configuration file
No response
Your complete test report
No response
Screenshots
No response
Steps to Reproduce
yarn init
yarn add testcafe@1.19.0
fp-ts
Note:
TestCafe version
1.19.0
Node.js version
16.15.1
Command-line arguments
yarn install
Browser name(s) and version(s)
No response
Platform(s) and version(s)
No response
Other
No response
The text was updated successfully, but these errors were encountered: