javascriptelectronelectron-builderyarn-workspaces

How to get full log of packaged electron app error?


enter image description here

How can i know what node module is causing my packaged app to crash?the path is cut short. Is there a way to get this error to terminal or file?

UPDATE: i know the error comes from importing my workspace with yarn workspaces, i commented this and packaged the app and works but i dont know whats wrong.it works when i just build it and run from terminal.

const { app, BrowserWindow, ipcMain } = require('electron');
const path = require('path');
const { format } = require('url');
const { organizeFiles } = require('@movepics/script'); THIS ONE

let mainWindow;

function createWindow() {...

Solution

  • So i was messing around with what i discovered and it seems cuz i have a exe file inside my package(yarn workspace) it causes this error, i just deleted the exe and now it works.

    Conclusion i have to learn how to make a package with prebuilt binaries inside or make the installer of electron download the binary.