You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Default error component does not catch - Failed to fetch dynamically imported module #6107
When failed to fetch dynamically imported module error is thrown,
the default error component (defaultErrorComponent in the createRouter) does not catch it.
Then an error is thrown in the console from the routeTree.gen.ts mostly on index.lazy files.
Your Example Website or App
Steps to Reproduce the Bug or Issue
from devtools disable network - set yourself as offline.
hover over a button that navigates to a route.
the error will be thrown.
Expected behavior
As a user I expect that the defaultErrorComponent will catch this error and decide how to handle it, so I will be able to mute/ ignore it/ reload the page.
You can configure auto-planning by selecting labels in the issue_enrichment configuration.
🔗 Related PRs
#5647 - test(solid-start): fix dev server for suspense transition [merged] #5890 - Fix: Route with server function as loader that throws notFound crashes route on HMR #5763 [merged]
Activity
coderabbitai commentedon Dec 16, 2025
📝 CodeRabbit Plan Mode
Generate an implementation plan and prompts that you can use with your favorite coding agent.
Examples
🔗 Related PRs
#5647 - test(solid-start): fix dev server for suspense transition [merged]
#5890 - Fix: Route with server function as loader that throws notFound crashes route on HMR #5763 [merged]
👤 Suggested Assignees
🧪 Issue enrichment is currently in early access.
To disable automatic issue enrichment, add the following to your
.coderabbit.yaml:💬 Have feedback or questions? Drop into our discord or schedule a call!
eylamk commentedon Dec 30, 2025
anything new guys?
schiller-manuel commentedon Dec 30, 2025
does this happen with automatic codesplitting as well?
eylamk commentedon Dec 31, 2025
it does not related to automatic codesplitting.
the error is being thrown from the routeTree.gen.ts on index.lazy files.
schiller-manuel commentedon Dec 31, 2025
yes but i want to know if the error is caught if automatic code splitting is used instead of manual lazy?
fix(router-core): handle rejected promise in loadRouteChunk
test: pin 24 community-reported issues fixed by the match-loading wor…