Javascript error in the main process


#1

We are creating a electron desktop application and it works perfectly fine in development
mode but after packaging, the app throws the javascript error on first launch. The subsequent launches of the application work fine and so do the inner functionality.
I cannot understand if it’s a problem in the packaging of the app or I missed something.

The screenshot of the error:

Node: v9.2.0
Electron-builder: v19.49.2