Skip to content

Web UI fails to load - JS module blocked due to incorrect MIME type #6122

Description

@nathabonfim59

Description

When I try to the WebUI, it gets stuck with this error in a blank page/

OpenCode version

OpenCode 1.0.198

Steps to reproduce

It occurs in both, with opencode serve and after the opening from the terminal, using Open WebUI.

  1. Open opencode
  2. Click Ctrl + P and select Open WebUI
  3. It shows as a blank screen

Screenshot and/or share link

The screenshot shows Zen (Firefox), but it was tested in Chrome, Helium, brave

Image
Loading module from “http://127.0.0.1:4096/assets/index-CFCjwJ3H.js” was blocked because of a disallowed MIME type (“text/html”). 127.0.0.1:4096

Loading failed for the module with source “http://127.0.0.1:4096/assets/index-CFCjwJ3H.js”. 127.0.0.1:4096:16:71
Image

Operating System

Linux archlinux 6.18.2-arch2-1 #1 SMP PREEMPT_DYNAMIC Thu, 18 Dec 2025 18:00:18 +0000 x86_64 GNU/Linux

Terminal

Ghostty (but it's web, not terminal)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwebRelates 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