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
I've tried migrating my react project with workspaces to yarnpnp2nix, but encountered error during package building with nix build
`
… while evaluating attribute 'unplugPhase' of derivation 'babel-helper-compilation-targets-7.23.6-aa6f07f088'
at /nix/store/mmihlxna7x7wryngb0h47n0ssbravph0-source/lib/mkYarnPackage.nix:309:9:
308|
309| unplugPhase =
| ^
310| # for debugging:
… from call site
at /nix/store/mmihlxna7x7wryngb0h47n0ssbravph0-source/lib/mkYarnPackage.nix:153:30:
152|
153| createLockFileScript = mkCreateLockFileScript_internal {
| ^
154| inherit packageRegistry;
… while calling 'mkCreateLockFileScript_internal'
at /nix/store/mmihlxna7x7wryngb0h47n0ssbravph0-source/lib/mkYarnPackage.nix:67:5:
66| mkCreateLockFileScript_internal =
67| {
| ^
68| packageRegistry,
… while evaluating derivation 'browserslist-4.22.3-c3c1809375'
whose name attribute is located at /nix/store/80v3x99d9cl7h9fbhqrpajwg4vjyxg6y-source/pkgs/stdenv/generic/make-derivation.nix:348:7
… while evaluating attribute 'unplugPhase' of derivation 'browserslist-4.22.3-c3c1809375'
at /nix/store/mmihlxna7x7wryngb0h47n0ssbravph0-source/lib/mkYarnPackage.nix:309:9:
308|
309| unplugPhase =
| ^
310| # for debugging:
… from call site
at /nix/store/mmihlxna7x7wryngb0h47n0ssbravph0-source/lib/mkYarnPackage.nix:153:30:
152|
153| createLockFileScript = mkCreateLockFileScript_internal {
| ^
154| inherit packageRegistry;
… while calling 'mkCreateLockFileScript_internal'
at /nix/store/mmihlxna7x7wryngb0h47n0ssbravph0-source/lib/mkYarnPackage.nix:67:5:
66| mkCreateLockFileScript_internal =
67| {
| ^
68| packageRegistry,
… while evaluating derivation 'update-browserslist-db-1.0.13-ea7b8ee24d'
whose name attribute is located at /nix/store/80v3x99d9cl7h9fbhqrpajwg4vjyxg6y-source/pkgs/stdenv/generic/make-derivation.nix:348:7
… while evaluating attribute 'unplugPhase' of derivation 'update-browserslist-db-1.0.13-ea7b8ee24d'
at /nix/store/mmihlxna7x7wryngb0h47n0ssbravph0-source/lib/mkYarnPackage.nix:309:9:
308|
309| unplugPhase =
| ^
310| # for debugging:
… from call site
at /nix/store/mmihlxna7x7wryngb0h47n0ssbravph0-source/lib/mkYarnPackage.nix:153:30:
152|
153| createLockFileScript = mkCreateLockFileScript_internal {
| ^
154| inherit packageRegistry;
… while calling 'mkCreateLockFileScript_internal'
at /nix/store/mmihlxna7x7wryngb0h47n0ssbravph0-source/lib/mkYarnPackage.nix:67:5:
66| mkCreateLockFileScript_internal =
67| {
| ^
68| packageRegistry,
error: infinite recursion encountered
at /nix/store/80v3x99d9cl7h9fbhqrpajwg4vjyxg6y-source/lib/customisation.nix:250:7:
249| drvPath = assert condition; drv.drvPath;
250| outPath = assert condition; drv.outPath;
| ^
251| };`
I suspect that it has something to do with how the yarn-manifest.nix is generated, because of code that looks like a cyclic dependency ( packages."browserslist@npm:4.22.3 referring to update-browserslist-db@npm:1.0.13 and update-browserslist-db@npm:1.0.13 back to former)
I’ve ran into similar issue recently.
You should be able to break the cycle by reminding browserlist peerDep from update-browserslist-db via yarn’s patch protocol. If update-browserslist-db is not a direct dep of your project you might also have to used resolutions to force the patched version to be used
note that when using patch you’ll have to manually edit the path to the patch in package.json to use relative path instead of ~
I've tried migrating my react project with workspaces to yarnpnp2nix, but encountered error during package building with nix build
`
I suspect that it has something to do with how the yarn-manifest.nix is generated, because of code that looks like a cyclic dependency ( packages."browserslist@npm:4.22.3 referring to update-browserslist-db@npm:1.0.13 and update-browserslist-db@npm:1.0.13 back to former)
Does anyone have idea how to fix it?
The text was updated successfully, but these errors were encountered: