Closed MichaelBelousov closed 1 year ago
If there is no disagreement I will submit a PR
@MichaelBelousov I'd suggest in the message that one possible reason this can happen is a missing Runtime and check to make sure it's installed. There are other reasons the specified module could not be found
error could occur.
Are app devs hitting this issue often?
@MichaelBelousov I'd suggest in the message that one possible reason this can happen is a missing Runtime and check to make sure it's installed. There are other reasons the
specified module could not be found
error could occur.Are app devs hitting this issue often?
Whoops I meant to word it as a possible reason, not the only. In my experience building itwin.js desktop apps it's happened maybe to 5ish people.
Occasionally on windows desktops people seem to run into an issue where node (or electron) throws an error when loading the native addon, with the windows error message
The specified module could not be found
.This happens because when node.js/electron requires the native addon, windows fails to load the addon DLL due to a missing dependency of the DLL, frequently this is just the Microsoft Visual C++ Runtime not being installed on the system. I have not identified any other required DLLs dependencies that windows 10/11 shouldn't already have installed.
The require occurs here
Could it be wrapped in a clearer platform-specific warning? like so: