Cannot find module electron-host-hook #1034

Closed
opened 2026-01-29 16:55:54 +00:00 by claunia · 3 comments
Owner

Originally created by @Tartilla-TAIGO on GitHub (Dec 12, 2025).

  • Version: 0.3.0-pre.353
  • Target: osx-arm64, win-x64

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
Image
My repository: https://github.com/Tartilla-TAIGO/Test

Originally created by @Tartilla-TAIGO on GitHub (Dec 12, 2025). <!-- Please search existing issues to avoid creating duplicates. --> <!-- Which version of Electron.NET CLI and API are you using? --> <!-- Please always try to use latest version before report. --> * **Version**: 0.3.0-pre.353 <!-- Which version of .NET Core and Node.js are you using (if applicable)? --> <!-- What target are you building for? --> * **Target**: osx-arm64, win-x64 <!-- Enter your issue details below this comment. --> <!-- If you want, you can donate to increase issue priority (https://donorbox.org/electron-net) --> 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 <img width="499" height="402" alt="Image" src="https://github.com/user-attachments/assets/6b409254-c88c-48b1-8891-c0e2d1f579bc" /> My repository: https://github.com/Tartilla-TAIGO/Test
claunia added the bugjavascript labels 2026-01-29 16:55:54 +00:00
Author
Owner

@Tartilla-TAIGO commented on GitHub (Dec 14, 2025):

was fixed in 0.3.0-pre.4, thanks

@Tartilla-TAIGO commented on GitHub (Dec 14, 2025): was fixed in 0.3.0-pre.4, thanks
Author
Owner

@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.

@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.
Author
Owner

@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)

@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)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#1034