Skip to content

Issue: DIY Downloader package is missing files and breaks on localhost - Windows 11 and WSL2 #6

Description

@serviteur

Thanks for this project.

The DIY Downloader (bim-ootb-install.bat / .sh) advertised on the live site runs to completion, but the resulting self-hosted viewer never initializes. Page shows only the title "BIM OOTB — Frictionless BIM" and a stuck 0:00 timer. Reproduced on Windows 11 and WSL2 / Xubuntu 24.04.04 LTS, in Chrome.

Three issues found

1. Five JS files are missing from the GitHub package

BIMCompiler-full/deploy/dev/ is missing files that index.html references — they 404 on every load:

"GET /loader.js?v=3" → 404
"GET /config.js?v=3" → 404
"GET /tools.js?v=5" → 404
"GET /measure.js?v=3" → 404
"GET /excel.js?v=4" → 404
"GET /manifest.webmanifest" → 404
"GET /favicon.ico" → 404

The live site evidently serves these from elsewhere, but the GitHub full branch doesn't include them.

2. Service worker breaks the app on http://localhost

sw.js registers on localhost and intercepts fetches, which then fail:

Uncaught (in promise) TypeError: Failed to fetch at sw.js?v=243:93:12

Suggested fix — skip registration on localhost:

```javascript
if ('serviceWorker' in navigator
    && location.hostname !== 'localhost'
    && location.hostname !== '127.0.0.1') {
  navigator.serviceWorker.register('sw.js?v=243')...
}

### 3. Syntax error in `bim-ootb-install.sh` aborts the install on Linux

```bash
`elif command -v xdg-open &>/dev/null; then xdg-open http://localhost:8080 &; fi`

&; is invalid bash. Combined with set -e, the script silently exits before python3 -m http.server 8080 ever runs. Fix:

`elif command -v xdg-open &>/dev/null; then xdg-open http://localhost:8080 & fi`
Image

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions