betamos / payload

File transfer for humans.
44 stars 0 forks source link

Whitescreen on older macOS #6

Open betamos opened 1 year ago

betamos commented 1 year ago

A user reported a whitescreen on launch on macOS Mojave (10.14.6). This should correspond to Webkit 608.1.49 / Safari 13.0, according to this chart by Tauri. CLI output looks normal but the agent is not started (it's launched only after a successful frontend initialization).

After trying a debug build, the Web Developer Console reported a syntax error . in the bundled JS file, indicating that there's an unsupported language feature. After some research, I found a prime suspect - the optional chaining operator ?. which fits:

Mitigation

I added Babel support to the rollup bundling with preset-env as the last step - and confirmed that absence of optional chaining operations in the bundled js file. I sent the user a new debug build and am waiting on confirmation. Together with the fix for #2, the hope is that Payload is supported on at least Mojave, and possibly further back to High Sierra.

betamos commented 1 year ago

The approach worked for Mojave. However, it does not work on High Sierra. It could be a similar problem though, but unfortunately the Web Developer Tools aren't supported so it's difficult to triage.