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:
The bundled js file was confirmed to use optional chaining
The syntax error . fits with this kind of error
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.
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.
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:.
fits with this kind of errorMitigation
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.