Javascript Error - Mailspring 1.16.0

Description

Mailspring reports a JavaScript error:

App threw an error during load
TypeError: arg.includes is not a function
    at parseCommandLine (/usr/lib/mailspring/app.asar/src/browser/main.js:167:13)
    at start (/usr/lib/mailspring/app.asar/src/browser/main.js:294:19)
    at Object.<anonymous> (/usr/lib/mailspring/app.asar/src/browser/main.js:382:1)
    at Module._compile (node:internal/modules/cjs/loader:1738:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1904:10)
    at Module.load (node:internal/modules/cjs/loader:1472:32)
    at Module._load (node:internal/modules/cjs/loader:1289:12)
    at c._load (node:electron/js2c/node_init:2:18013)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:242:24)
A JavaScript error occurred in the main process
Uncaught Exception:
TypeError: arg.includes is not a function
    at parseCommandLine (/usr/lib/mailspring/app.asar/src/browser/main.js:167:13)
    at start (/usr/lib/mailspring/app.asar/src/browser/main.js:294:19)
    at Object.<anonymous> (/usr/lib/mailspring/app.asar/src/browser/main.js:382:1)
    at Module._compile (node:internal/modules/cjs/loader:1738:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1904:10)
    at Module.load (node:internal/modules/cjs/loader:1472:32)
    at Module._load (node:internal/modules/cjs/loader:1289:12)
    at c._load (node:electron/js2c/node_init:2:18013)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:242:24)

To Reproduce…

Steps to reproduce the behavior:

  1. Run mailspring from command line (mailspring)

Expected Behavior

Mailspring runs normally

Screenshots

Setup

  • OS and Version: Arch Linux
    • Installation Method: AUR package mailspring-bin (with dependency electron37-bin)
  • Mailspring Version: 1.16.0

Additional Context

Same issue here. Had to revert back to 1.15.something

Those packages are community based, so not sure Mailspring can help too much.

I have the same issue.
Downgrading to 1.15 or even 1.14 won’t help. I have removed the config dirs, and it still throws the same error as the OP has.
I have no idea where to start to fix this issue.
Now I’m using 1.14 via flatpak while we can figure this out.

See: Latest Mailspring update Intel MacOS fails to load - #7 by bengotow

There is a fix available.