Skip to content

fix: prevent frontend vendor chunk initialization crash - #35

Merged
WilliamWang1721 merged 7 commits into
mainfrom
agent/diagnose-console-blank
Aug 6, 2026
Merged

fix: prevent frontend vendor chunk initialization crash#35
WilliamWang1721 merged 7 commits into
mainfrom
agent/diagnose-console-blank

Conversation

@WilliamWang1721

Copy link
Copy Markdown
Owner

What changed

Removed the custom Vite manualChunks vendor grouping and restored normal Rollup dependency-based chunking.

Root cause

The forced vendor-vue / vendor-misc split created a cross-chunk initialization cycle. Published 0.3.6 and 0.3.61 images fail before Vue mounts with:

ReferenceError: Cannot access 'G' before initialization

All static assets return successfully, but #app remains empty.

Validation

  • Reproduced the identical browser exception in both GHCR 0.3.6 and 0.3.61 images.
  • Built a complete production image from this branch successfully.
  • Confirmed the fixed build renders the login page and completes login navigation without the original initialization exception.
  • Temporary diagnostic workflow was removed; the final diff contains only frontend/vite.config.ts.

Release impact

This is the required frontend fix for the upcoming 0.3.62 release. Versioning and release actions remain separate.

@github-actions

github-actions Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Thank you for your contribution! Before we can merge this PR, we need you to sign our Contributor License Agreement (CLA).

To sign, please reply with the following comment:

I have read the CLA Document and I hereby sign the CLA

You only need to sign once — it will be valid for all your future contributions to this project.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

@WilliamWang1721
WilliamWang1721 merged commit 4f58004 into main Aug 6, 2026
9 of 10 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 6, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant