I am creating an electron js app on Windows 10, when I run "npm run start" the application works well and WhatsApp also works well and send messages.
when I build the app to exe file, it doesn't fire 'qr' event even when I wait too long nothing happens.
the build script I used is: electron-packager . --platform=win32 --out=build --icon=./icons/logo.ico --asar --overwrite"
the code and version of whatsapp-web.js in shown in the attached images