0
votes

This error window appears as soon as I enter my app after packaging it using the electron-builder

enter image description here

although the devDependencies for electron-updater is included

1

1 Answers

0
votes

electron-builder does not include devDependencies in the packaged application since they're exclusive for development, you should reinstall electron-updater as a dependency.

From the electron-builder website:

A complete solution to package and build a ready for distribution Electron app for macOS, Windows and Linux with “auto update” support out of the box.

  • NPM packages management:
    • Native application dependencies compilation (including Yarn support).
    • Development dependencies are never included. You don’t need to ignore them explicitly.

...