Closed beyondkmp closed 2 months ago
Latest commit: ce78ac6f455bcf46504ae4c62d2a4e0e9ade2447
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
fix https://github.com/electron-userland/electron-builder/issues/8431
package.json
main.js
error
root cause
The version of
minipass
in theminizlib
dependency is incorrect; it shouldn't be 3.3.6.Currently, there's no record of the parent-child tree relationship, and it doesn't search for the highest parent node. If it's already found, it directly returns
nil
, causing it to revert to an older version.How to fix
Perform a fixed-order loop search on the
NodeModuleDirToDependencyMap
. If the dependency is in thehoistedDependMap
and the version number is different, place that dependency in theconflictDependencyMap
of the highest parent node. If it's not in thehoistedDependMap
, just set it directly.The current approach is to implement a
hoistedDependMap
, so it's no longer necessary to setnode-linker=hoisted
in pnpm's configuration.