TypeError: Cannot read properties of undefined (reading 'switchTo') at https://app.regask.com/static/js/1556.7d465ae6.chunk.js:29:8909 at Ys (https://app.regask.com/static/js/main.a583873b.js:53:463292) at fc (https://app.regask.com/static/js/main.a583873b.js:53:483425) at https://app.regask.com/static/js/main.a583873b.js:53:478036 at E (https://app.regask.com/static/js/main.a583873b.js:53:579595) at P (https://app.regask.com/static/js/main.a583873b.js:53:580127) at e.exports (https://app.regask.com/static/js/main.a583873b.js:53:187121) at y.<computed> (https://app.regask.com/static/js/main.a583873b.js:53:201344) at Number.b (https://app.regask.com/static/js/main.a583873b.js:53:201202) at MessagePort.w (https://app.regask.com/static/js/main.a583873b.js:53:201224)
💿 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.