Skip to content

Resolve build failures and fix static asset pathing#937

Open
azayrahmad wants to merge 3 commits into
mainfrom
fix-build-failures-6085457637046583647
Open

Resolve build failures and fix static asset pathing#937
azayrahmad wants to merge 3 commits into
mainfrom
fix-build-failures-6085457637046583647

Conversation

@azayrahmad

Copy link
Copy Markdown
Owner

The build was failing due to a missing dependency (music-metadata-browser) used in src/apps/webamp/webamp-app.js and incorrect pathing in index.html.

Vite expects scripts in the public/ directory to be referenced with absolute paths (e.g., /os-gui/utils.js) if they are not intended to be bundled as ES modules. The previous relative paths (./os-gui/utils.js) caused Vite to try and bundle them, failing because they lack the type="module" attribute and are legacy non-module scripts.

I have:

  1. Installed music-metadata-browser.
  2. Updated all references to public/ assets in index.html to use absolute paths.
  3. Verified the fix by running bun run build followed by bun run preview and performing automated visual verification with Playwright.

PR created automatically by Jules for task 6085457637046583647 started by @azayrahmad

…sset paths

- Add music-metadata-browser to package.json (required by Webamp).
- Update index.html to use absolute paths for static assets in public/.
- This prevents Vite from attempting to bundle legacy scripts as ES modules.

Co-authored-by: azayrahmad <10110227+azayrahmad@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

google-labs-jules Bot and others added 2 commits March 7, 2026 08:05
- This dependency is required by src/apps/webamp/webamp-app.js and its absence was causing build failures.
- Reverted experimental changes to index.html asset paths to maintain production compatibility.

Co-authored-by: azayrahmad <10110227+azayrahmad@users.noreply.github.com>
…ailures

- Added music-metadata-browser to dependencies in package.json.
- Verified that bun run build, bun run preview, and bun run dev are all working correctly.
- Maintained relative asset paths in index.html for production compatibility.

Co-authored-by: azayrahmad <10110227+azayrahmad@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant