- We are really sorry but an error occurred in the web client that
- caused it to crash.
- This is not supposed to happen, and we are working hard to fix it.
+ {t("errorPage.description1")}
- The best way to prevent this from happening again to you or anyone - else is to report the issue to us. + {t("errorPage.description2")}
Please include the following information in your report:
-
-
- What you were doing when the error occurred -
- What you expected to happen -
- What actually happened -
- Any other relevant information +
- {t("errorPage.reportSteps.step1")} +
- {t("errorPage.reportSteps.step2")} +
- {t("errorPage.reportSteps.step3")} +
- {t("errorPage.reportSteps.step4")}
- You can report the issue to our{" "}
- ",
- logs: error?.stack,
- })}
- >
- Github
-
+
- Return to the dashboard
+
Error Details
++ {t("errorPage.detailsSummary")} +
{error?.message && ( <> - +{error.message}
- > + > // TODO: Use Trans for the label and message together? )} {error?.stack && ( <> - + )} {!error?.message && !error?.stack && ( -{error.toString()}
++ {t("errorPage.fallbackError", { error: error.toString() })} +
)}This is not supposed to happen, and we are working hard to fix it.", + "description2": "The best way to prevent this from happening again to you or anyone else is to report the issue to us.", + "reportInstructions": "Please include the following information in your report:", + "reportSteps": { + "step1": "What you were doing when the error occurred", + "step2": "What you expected to happen", + "step3": "What actually happened", + "step4": "Any other relevant information" + }, + "reportLink": "You can report the issue to our <0>Github0>", + "dashboardLink": "Return to the <0>dashboard0>", + "detailsSummary": "Error Details", + "errorMessageLabel": "Error message:", + "stackTraceLabel": "Stack trace:", + "fallbackError": "{{error}}" + }, "footer": { "text": "Powered by <0>▲ Vercel0> | Meshtastic® is a registered trademark of Meshtastic LLC. | <1>Legal Information1>", "commitSha": "Commit SHA: {{sha}}" diff --git a/src/index.tsx b/src/index.tsx index dbaafd39..95c0de83 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -5,6 +5,7 @@ import { StrictMode, Suspense } from "react"; import { createRoot } from "react-dom/client"; import "./i18n/config.ts"; import { createRouter, RouterProvider } from "@tanstack/react-router"; +import { TanStackRouterDevtools } from "@tanstack/router-devtools"; import { routeTree } from "@app/routes.tsx"; declare module "@tanstack/react-router" { @@ -26,6 +27,7 @@ root.render(