Skip to content

Windows - javascript error (blank web page) after start_ui.bat clean install #49

@ofer-tal

Description

@ofer-tal

On windows, after downloading and extracting the zip file and running start_ui.bat

The script installs all requirements and launches the browser at http://localhost:8888 however the page is blank, and the chrome console has the message:

index-v7zMAC7k.js:1 Failed to load module script: Expected a JavaScript-or-Wasm module script but the server responded with a MIME type of "text/plain". Strict MIME type checking is enforced for module scripts per HTML spec.

I can see that indeed in the network pane, the js file has the following response headers (note content-type incorrect):

HTTP/1.1 200 OK
date: Mon, 12 Jan 2026 09:24:49 GMT
server: uvicorn
content-type: text/plain; charset=utf-8
accept-ranges: bytes
content-length: 656420
last-modified: Mon, 12 Jan 2026 08:48:34 GMT
etag: "3dfb7381a2badd433015d6de3950b93a"
access-control-allow-credentials: true
access-control-allow-origin: http://127.0.0.1:8888
vary: Origin

PS console window running start_ui.bat has the following output (this is not the first run):

PS C:\Projects\autocoder> .\start_ui.bat

====================================
  AutoCoder UI
====================================

Installing dependencies...
==================================================
  AutoCoder UI Setup
==================================================

[1/6] Setting up Python environment
--------------------------------------------------
  Virtual environment already exists

[2/6] Installing Python dependencies
--------------------------------------------------
  Installing Python dependencies...

[3/6] Checking Node.js
--------------------------------------------------
  Node.js version: v24.11.1

[4/6] Installing npm dependencies
--------------------------------------------------
  npm dependencies already installed

[5/6] Building frontend
--------------------------------------------------
  Frontend already built

[6/6] Starting server
--------------------------------------------------

  Starting server at http://127.0.0.1:8888

==================================================
  Server running at http://127.0.0.1:8888
  Press Ctrl+C to stop
==================================================
INFO:     Started server process [36408]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Uvicorn running on http://127.0.0.1:8888 (Press CTRL+C to quit)
INFO:     127.0.0.1:38460 - "GET / HTTP/1.1" 200 OK
INFO:     127.0.0.1:38460 - "GET /assets/index-v7zMAC7k.js HTTP/1.1" 200 OK
INFO:     127.0.0.1:46284 - "GET /assets/index-LBpMaG9n.css HTTP/1.1" 200 OK
INFO:     127.0.0.1:38460 - "GET /vite.svg HTTP/1.1" 200 OK
INFO:     127.0.0.1:46986 - "GET /assets/index-LBpMaG9n.css HTTP/1.1" 304 Not Modified
INFO:     127.0.0.1:46986 - "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 200 OK

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions