Skip to content

Cannot find module electron-host-hook #978

Closed

Description

@Tartilla-TAIGO
  • 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

Activity

  1. Tartilla-TAIGO commented on Dec 14, 2025

    @Tartilla-TAIGO
    Author

    was fixed in 0.3.0-pre.4, thanks

  2. added this to the 0.3.0 milestone on Dec 14, 2025
  3. FlorianRappl commented on Dec 14, 2025

    @FlorianRappl
    Collaborator

    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.

  4. added
    javascript
    on Dec 14, 2025
  5. Tartilla-TAIGO commented on Dec 14, 2025

    @Tartilla-TAIGO
    Author

    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 up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugjavascript

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions