mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
Cannot find module electron-host-hook #1034
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Tartilla-TAIGO on GitHub (Dec 12, 2025).
Steps to Reproduce:

If you create the application according to the documentation, then when assembling the installation files and running the application installer, an error occurs that the electron-host-hook module was not found. On macOS, this problem is solved by adding an folder from the repository with an example of using ElectronHostHook, but builds made on macOS for Windows with this folder do not solve this problem and the installation of the program on Windows stops with the same error as on macOS
My repository: https://github.com/Tartilla-TAIGO/Test
@Tartilla-TAIGO commented on GitHub (Dec 14, 2025):
was fixed in 0.3.0-pre.4, thanks
@FlorianRappl commented on GitHub (Dec 14, 2025):
Thanks for the info. The fix just makes this more robust, but we should still look more deeply into it. After all, it means that either the standard (no-op) host-hook was not copied or that the resolution does not work.
In any case, what we currently have is the default, as it does not error-out the IPC bridge.
@Tartilla-TAIGO commented on GitHub (Dec 14, 2025):
Perhaps the problem is observed precisely when building on macOS. The strangeness is that when you try to create an installer without using ElectronHostHook for any purpose in the project, it causes an error. When you add this module to a project (the module itself does not perform any functions), the installer for macOS starts working, but not for Windows. (in windows-unpack, there are no other files in the ElectronHostHook folder except package.json)