0👍
I made it working by packaging it with electron-builder and asar=true
option but had to put the whole node_modules directory up in the folder.
node_modules
|
----build
|
----The Program (exe)
I tried the same way with electron-packager but no luck, so I suspect there’s a bug or misconfiguration with electron-packager.
I’ve read also somewhere you have to build a mini express server so it works on file server but I haven’t tried it.
Source:stackexchange.com