Skip to content

The specified module could not be found error on Windows #142

@chetbox

Description

@chetbox

Many of our Windows users are getting the following error when initialising our Electron app which includes this library:

The specified module could not be found.
\\?\C:\Users\[redacted]\AppData\Local\[app_name]\app-5.3.1\resources\app.asar.unpacked\.webpack\renderer\node_modules\@ngrok\ngrok-win32-x64-msvc\ngrok.win32-x64-msvc.node

Note that we are using Electron Forge and have set in forge.config.js:

module.exports = {
  packagerConfig: {
    asar: {
      unpack: '*.node'
    }
}

Which works perfectly fine for other native libraries like serialport.

I have tried installing the same application on our own Windows 10 and Windows 11 machines and I can confirm:

  1. The file exists
  2. The module is loaded
  3. I can connect to Ngrok

What could be causing this?

Does the MSVC runtime need to be installed on the target computer? I can't see any like that in the documentation but I'm at a loss as to what else could be causing this problem.

Edit: I am using version 1.2.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions