Skip to content

fix: bump electron to ^42.4.0 to fix binary extraction on Node 24#556

Merged
Davidnet merged 1 commit into
mainfrom
fix/electron-extract-555
Jun 26, 2026
Merged

fix: bump electron to ^42.4.0 to fix binary extraction on Node 24#556
Davidnet merged 1 commit into
mainfrom
fix/electron-extract-555

Conversation

@Davidnet

Copy link
Copy Markdown
Member

Summary

make electron-dev failed on a fresh install under Node 24: electron@42.3.0 depended on extract-zip@2.0.1yauzl@2.10.0, which silently bails after the first zip entry on Node 24. Electron's install.js then produced a partial dist/ with no path.txt, so require('electron') threw ENOENT.

Electron 42.4.0 replaced the public extract-zip dependency with its own dependency-free @electron-internal/extract-zip, removing the broken yauzl chain at the source. Bumping the spec to ^42.4.0 resolves electron to 42.5.0 and drops extract-zip@2.0.1 / yauzl@2.10.0 from the tree entirely — avoiding a package.json overrides hack.

Verified: binary extracts fully (dist/version = 42.5.0, path.txt present), require('electron') resolves, and the frontend npm run build (html-webpack-plugin) compiles cleanly.

Closes #555

electron@42.3.0 depended on extract-zip@2.0.1, which pins yauzl@2.10.0.
Under Node 24, yauzl@2.10.0 silently bails after the first zip entry, so
electron's install.js produced a partial dist/ with no path.txt and
require('electron') threw ENOENT, breaking `make electron-dev`.

electron 42.4.0 replaced the public extract-zip dependency with its own
dependency-free @electron-internal/extract-zip, removing the broken yauzl
chain at the source. Bumping the spec to ^42.4.0 resolves electron to
42.5.0 and drops extract-zip@2.0.1 / yauzl@2.10.0 from the tree entirely,
avoiding a package.json overrides hack.

Closes #555
Copilot AI review requested due to automatic review settings June 26, 2026 21:57

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@Davidnet Davidnet merged commit f83ae76 into main Jun 26, 2026
8 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 26, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

make electron-dev fails: yauzl@2.10.0 silently fails Electron binary extraction on Node 24

2 participants