JavaScript Error On Sign in
Min crashes with JavaScript error when using "Sign in with Google" on Windows
Description
I ran into a crash in Min while trying to sign in to a website using the "Sign in with Google" option.
Everything was working normally up until I clicked the Google sign-in button. As soon as the Google authentication flow started, Min crashed and showed the following error dialog:
A JavaScript error occurred in the main process
Uncaught Exception:
TypeError: Cannot read properties of undefined (reading 'capturePage')
at IpcMainImpl.<anonymous>
(C:\Users\anonm\AppData\Local\min\app-1.35.6\resources\app\main.build.js:2335:20)
at IpcMainImpl.emit (node:events:509:28)
at Session.<anonymous> (electron/js2c/browser_init:2:113605)
at Session.emit (node:events:509:28)The browser then stops responding normally and the error dialog has to be dismissed.
Steps to reproduce
- Open Min on Windows.
- Visit a website that supports Sign in with Google.
- Click Sign in with Google.
- The Google authentication flow begins.
- Min crashes and displays the JavaScript error above.
I haven't noticed this error during normal browsing. It specifically happened when I attempted to authenticate through Google's sign-in flow.
Expected behavior
The Google authentication page should open normally, allow me to sign in, and then return me to the original website after authentication.
Actual behavior
Min crashes during the Google authentication flow with:
TypeError: Cannot read properties of undefined (reading 'capturePage')The error appears to originate from Min's main process / Electron code rather than from the website itself.
Environment
- OS: Windows 11
- Windows version: 25H2
- Min version: 1.35.6
- Platform: Windows x64
- Trigger: "Sign in with Google" / Google OAuth authentication
- Browser: Min
Additional information
This happened while using Min normally; I wasn't doing anything unusual or using developer tools.
The important part is that the crash occurred immediately around the Google authentication flow. It may be related to how Min handles the authentication page/window/session during OAuth, although I'm not sure if that is actually the underlying cause.
I have included a screenshot of the exact error dialog because the stack trace may help narrow down what is happening.
The error points to:
main.build.js:2335:20and specifically complains about:
capturePageI can reproduce the issue if needed and can provide any additional information/logs that would be useful for debugging.
Thanks for maintaining Min! It's otherwise been working nicely for me, so I'd really appreciate it if this could be looked into.
Source: minbrowser/min