Description
I'm able to successfully run an Angular project with electron-edge-js in dev; however, when packaging the app using electron-packager, the application fails to load and produces a JS error stating "Cannot find module 'electron-edge-js'". I've followed the edge-js documentation for setup and usage, with the below snippet's being my initialization (NOTE: this initialization is occurring in the electron main process):
const edge = require('electron-edge-js');
These are the dependencies referenced in the root packages.json file:
"electron": "^17.4.9", "electron-edge-js": "^17.0.0", "electron-packager": "^15.5.1",
Can someone please assist with some info on why this dependency may not be included properly on build? For reference, this is the build command for Windows apps that I've been using:
npm run build --prod && cross-var electron-packager dist/my-app $npm_package_name-$npm_package_version --out=packages --platform=win32 --arch=all --overwrite
EDIT FOR MORE INFO:
I'm also running node version 16.13.1, if that makes any sort of difference.