Skip to content

Desktop app white screen on macOS 12 (Intel): Invalid regular expression: invalid group specifier name #7291

@wunamesst

Description

@wunamesst

Question

When launching the OpenCode Desktop application on macOS 12.7 (Intel), the app shows a white screen with the message:

<noscript>You need to enable JavaScript to run this app.</noscript>

After opening the WebView developer tools, the following JavaScript error is shown in the console:

[Error] SyntaxError: Invalid regular expression: invalid group specifier name
    RegExp (index-DK9PQlf1.js:532:564761)
    Module Code (index-DK9PQlf1.js:532:564761)
    evaluate
    moduleEvaluation
    (anonymous function)
    promiseReactionJob

It appears that the frontend bundle fails during the JavaScript parse/evaluation phase, so the application never mounts and remains blank.

Environment

OS: macOS 12.7
Architecture: Intel (x64)
Device: Mac (Intel-based)
OpenCode: Desktop application v1.16

Image

Metadata

Metadata

Assignees

Labels

webRelates to opencode on web / desktop

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions