Skip to content

downgrade electron-builder#251

Merged
gwleuverink merged 3 commits intomainfrom
fix/windows-fsevents-build-error
Sep 4, 2025
Merged

downgrade electron-builder#251
gwleuverink merged 3 commits intomainfrom
fix/windows-fsevents-build-error

Conversation

@gwleuverink
Copy link
Copy Markdown
Contributor

Fixes https://github.com/NativePHP/laravel/issues/613

Lots of people are reporting build issue on Windows. Debugging this was a headache but I finally found it.

Apparently electron-builder made significant changes to how the dependency tree is searched and ever since it seems it doesn't take platform requirements into account. Causing it to try and resolve a package that is correctly not included in node_modules. This mechanism is used to decide what node_modules should be moved to the asar archive.

I was able to track it down to this PR: electron-userland/electron-builder#9010
And later found others with a similar issue: electron-userland/electron-builder#9259 (comment)

I've tried plenty of workarounds but after discovering the code that causes this it became apparent I cannot really patch around the issue. This pull request downgrades electron-builder back to ^25.

I'll keep an eye on the issue in the electron-builder repo. We should be able to bump it back to ^26 if that issue is resolved on their side.

@gwleuverink gwleuverink requested a review from a team September 4, 2025 08:34
Copy link
Copy Markdown
Member

@SRWieZ SRWieZ left a comment

Choose a reason for hiding this comment

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

Bummer, but let's go for the fix!

@gwleuverink gwleuverink merged commit 470bf86 into main Sep 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The fsevents dependency is causing a build failure on Windows 11.

3 participants