[GH-ISSUE #4906] [Bug]: Failed to fetch dynamically imported module #3432

Closed
opened 2026-10-31 20:32:23 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @ErrMoheta on GitHub (Jun 4, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4906

Describe the bug

Unexpected Application Error!
Failed to fetch dynamically imported module: https://...:30260/asdsadsadasd/assets/InboundFormModal-CTLoBeFF.js
TypeError: Failed to fetch dynamically imported module: https://...:30260/Bdsadsa/assets/InboundFormModal-CTLoBeFF.js
💿 Hey developer 👋

You can provide a way better UX than this when your app throws errors by providing your own ErrorBoundary or errorElement prop on your route.

How to reproduce the problem

  1. Inbox - Create connections

Expected behavior

No response

Actual behavior

No response

Relevant logs


Screenshots

No response

3x-ui version

v3.2.0

Xray-core version

v26.5.9

How did you install 3x-ui?

install.sh script

Operating system

Ubuntu 24.04

Which parts of the panel are affected?

No response

Browser (only if it is a UI bug)

Chrome

Is the panel behind a reverse proxy or CDN?

None

Before submitting

  • I searched existing issues and this bug has not been reported.
  • I am running the latest released version of 3x-ui (or have verified the bug still exists on it).
  • This bug report is written in English.
  • I have redacted any sensitive data (tokens, real domains, client UUIDs).
Originally created by @ErrMoheta on GitHub (Jun 4, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4906 ### Describe the bug Unexpected Application Error! Failed to fetch dynamically imported module: https://**.**.***.***:30260/asdsadsadasd/assets/InboundFormModal-CTLoBeFF.js TypeError: Failed to fetch dynamically imported module: https://**.**.***.***:30260/Bdsadsa/assets/InboundFormModal-CTLoBeFF.js 💿 Hey developer 👋 You can provide a way better UX than this when your app throws errors by providing your own ErrorBoundary or errorElement prop on your route. ### How to reproduce the problem 1) Inbox - Create connections ### Expected behavior _No response_ ### Actual behavior _No response_ ### Relevant logs ```shell ``` ### Screenshots _No response_ ### 3x-ui version v3.2.0 ### Xray-core version v26.5.9 ### How did you install 3x-ui? install.sh script ### Operating system Ubuntu 24.04 ### Which parts of the panel are affected? _No response_ ### Browser (only if it is a UI bug) Chrome ### Is the panel behind a reverse proxy or CDN? None ### Before submitting - [x] I searched [existing issues](../issues?q=is%3Aissue) and this bug has not been reported. - [x] I am running the latest released version of 3x-ui (or have verified the bug still exists on it). - [x] This bug report is written in English. - [x] I have redacted any sensitive data (tokens, real domains, client UUIDs).
bsakaguchi 2026-10-31 20:32:23 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@github-actions[bot] commented on GitHub (Jun 4, 2026):

Thanks for the report.

What's happening

InboundFormModal is lazy-loaded via React's lazy() (InboundsPage.tsx:40). When you click Create, the browser tries to fetch the chunk file whose name is baked into the HTML page you loaded. If the chunk file on the server no longer matches that name — e.g. because the panel service restarted or you upgraded while the tab was already open — the fetch 404s and you see this error.

The asset URL is built at runtime from window.X_UI_BASE_PATH (injected by the Go server into every HTML response), so the base-path part is fine; the problem is the chunk hash being stale.

Fix

  1. Hard-refresh the panel tab — Ctrl+Shift+R (Windows/Linux) or Cmd+Shift+R (macOS). This forces the browser to discard its cached copy of the HTML page and fetch a fresh one with the correct chunk filenames.

  2. Upgrade to v3.2.7. You reported v3.2.0; the current release is v3.2.7 (released 2026-06-03) and includes several frontend fixes. Run the update from the management menu:

    x-ui          # open the management menu
    # choose option 2 — Update
    

    After the update, do a hard-refresh in the browser.

Why it recurs

If you keep the panel open in a browser tab for a long time and the service restarts in the background (e.g. after a system reboot or an automatic update), the HTML you're viewing still references the old chunk hashes. The HTML itself is served no-cache so a fresh page load always gets the right names — but an open tab will not reload on its own. A hard-refresh or reopening the panel URL is enough to clear it.

If hard-refreshing and upgrading do not resolve the issue, please reopen with the output of:

x-ui   # show current version (option 1 → Status)
systemctl status x-ui
<!-- gh-comment-id:4621949599 --> @github-actions[bot] commented on GitHub (Jun 4, 2026): Thanks for the report. **What's happening** `InboundFormModal` is lazy-loaded via React's `lazy()` ([InboundsPage.tsx:40](https://github.com/MHSanaei/3x-ui/blob/main/frontend/src/pages/inbounds/InboundsPage.tsx#L40)). When you click **Create**, the browser tries to fetch the chunk file whose name is baked into the HTML page you loaded. If the chunk file on the server no longer matches that name — e.g. because the panel service restarted or you upgraded while the tab was already open — the fetch 404s and you see this error. The asset URL is built at runtime from `window.X_UI_BASE_PATH` (injected by the Go server into every HTML response), so the base-path part is fine; the problem is the chunk hash being stale. **Fix** 1. **Hard-refresh the panel tab** — `Ctrl+Shift+R` (Windows/Linux) or `Cmd+Shift+R` (macOS). This forces the browser to discard its cached copy of the HTML page and fetch a fresh one with the correct chunk filenames. 2. **Upgrade to v3.2.7.** You reported v3.2.0; the current release is v3.2.7 (released 2026-06-03) and includes several frontend fixes. Run the update from the management menu: ```bash x-ui # open the management menu # choose option 2 — Update ``` After the update, do a hard-refresh in the browser. **Why it recurs** If you keep the panel open in a browser tab for a long time and the service restarts in the background (e.g. after a system reboot or an automatic update), the HTML you're viewing still references the old chunk hashes. The HTML itself is served `no-cache` so a fresh page load always gets the right names — but an open tab will not reload on its own. A hard-refresh or reopening the panel URL is enough to clear it. If hard-refreshing and upgrading do not resolve the issue, please reopen with the output of: ```bash x-ui # show current version (option 1 → Status) systemctl status x-ui ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#3432
No description provided.