Cannot find module index.js


#1

I’ve had a problem getting my Electron app to open and work since I pulled my latest code, and I cannot figure out what is wrong.

14

I have an Angular5 app that is being packaged with electron-packager on macOS, creating a macOS app.

The process I took was:

  1. Install all dev dependencies such as electron/electron-packager etc
  2. run ng build
  3. run npm run package-mac

npm run package-mac calls the package.json script: "electron-packager . --overwrite --platform=darwin --arch=x64 --icon=src/assets/icons/mac/icon.icns --prune=true --out=release-builds"