ERROR_MOD_NOT_FOUND
126 (0x7E)
The specified module could not be found.
Following the stack trace in the logged error, I found that the error begins in api.ffi.ffiLoader.loadLibrary() in C:\Users\...\safe_browser\app\node_modules\beaker-plugin-safe-authenticator\index.js
In C:\Users\...\safe_browser\app\node_modules\beaker-plugin-safe-authenticator\dist\api.js I’ve logged pieces of information to ensure that the correct .dll is being loaded.
Should libwinpthread-1.dll also be in the same directory as the other .dll’s? Perhaps it’s a dependency that’s required for the other modules to be recognized?
I need to find out why it’s not making it to it’s destination.
UPDATE:
Thank goodness for find in powershell.
Found this way up in the output: ERROR in [copy-webpack-plugin] unable to locate 'libwinpthread-1.dll' at 'C:\Users\...\safe_browser\authenticator\src\ffi\libwinpthread-1.dll'
I placed libwinpthread-1.dll where it needs to be and everything is working as it should now.
Still interested to learn where it’s supposed to be sourced from during the build process.
Nice one @hunterlester. There is one step which is missing in the README for windows. Can you also manually copy and paste the libwinpthread-1.dll into the app\node_modules\beaker-plugin-safe-authenticator\dist from the bin folder of mingw installation? I hope that should resolve this issue.
It varies based on the installation. One option to automate will be to use a MINGW_HOME env variable from where the libwinpthread-1.dll can be copied. This is not integarted, but I can think of this as an option to automate and emphasize on setting this env variable for building the browser on windows.