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

Open
opened 2026-02-16 17:43:42 -05:00 by yindo · 7 comments
Owner

Originally created by @wunamesst on GitHub (Jan 8, 2026).

Originally assigned to: @adamdotdevin on GitHub.

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
Originally created by @wunamesst on GitHub (Jan 8, 2026). Originally assigned to: @adamdotdevin on GitHub. ### 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 ``` ----------- <img width="3268" height="2050" alt="Image" src="https://github.com/user-attachments/assets/50eb7e94-5e6c-4f88-83ab-02de14cb9aea" />
yindo added the web label 2026-02-16 17:43:42 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 8, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #5670: SyntaxError: Invalid regular expression: invalid group specifier name

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 8, 2026): This issue might be a duplicate of existing issues. Please check: - #5670: SyntaxError: Invalid regular expression: invalid group specifier name Feel free to ignore if none of these address your specific case.
Author
Owner

@ryanxie113 commented on GitHub (Jan 8, 2026):

I have also met the same problem

@ryanxie113 commented on GitHub (Jan 8, 2026): I have also met the same problem
Author
Owner

@kazani-351 commented on GitHub (Jan 8, 2026):

same problem

@kazani-351 commented on GitHub (Jan 8, 2026): same problem
Author
Owner

@snowdream commented on GitHub (Jan 19, 2026):

same problem

@snowdream commented on GitHub (Jan 19, 2026): same problem
Author
Owner

@alexkkss commented on GitHub (Jan 26, 2026):

same problem

Environment

OS: macOS 12.7.6
Apple M1
OpenCode: Desktop application v1.1.36
@alexkkss commented on GitHub (Jan 26, 2026): same problem Environment ``` OS: macOS 12.7.6 Apple M1 OpenCode: Desktop application v1.1.36 ```
Author
Owner

@fanybook commented on GitHub (Feb 5, 2026):

same problem

OS: macOS 12.7.6
intel

@fanybook commented on GitHub (Feb 5, 2026): same problem OS: macOS 12.7.6 intel
Author
Owner

@fengliner commented on GitHub (Feb 9, 2026):

same problem. Have any solutions?

@fengliner commented on GitHub (Feb 9, 2026): same problem. Have any solutions?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4408