mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #4906] [Bug]: Failed to fetch dynamically imported module #3432
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#3432
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
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
@github-actions[bot] commented on GitHub (Jun 4, 2026):
Thanks for the report.
What's happening
InboundFormModalis lazy-loaded via React'slazy()(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
Hard-refresh the panel tab —
Ctrl+Shift+R(Windows/Linux) orCmd+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.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:
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-cacheso 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: