I’m developing the Tessie app and I’m experiencing an issue (maybe just me) when I’m visiting the battery view in both the iOS app and the web app, see below:
And on the web the app crashes. Got below error in console:
Summary
TypeError: Cannot read properties of undefined (reading ‘type’)
at gqe (Battery.jsx:215:13)
at yqe (Battery.jsx:253:21)
at oqe (Battery.jsx:33:24)
at dL (react-dom.production.min.js:157:137)
at oY (react-dom.production.min.js:267:460)
at nY (react-dom.production.min.js:250:347)
at O0e (react-dom.production.min.js:250:278)
at Tw (react-dom.production.min.js:250:138)
at gO (react-dom.production.min.js:243:163)
at react-dom.production.min.js:123:115
at e.unstable_runWithPriority (scheduler.production.min.js:18:343)
at bg (react-dom.production.min.js:122:325)
at DG (react-dom.production.min.js:123:61)
at nd (react-dom.production.min.js:122:428)
at z0e (react-dom.production.min.js:263:32)
at e.unstable_runWithPriority (scheduler.production.min.js:18:343)
at bg (react-dom.production.min.js:122:325)
at Eh (react-dom.production.min.js:261:308)
at H3 (react-dom.production.min.js:292:141)
at Dye (react-dom.production.min.js:73:323)
at HTMLDivElement.n (helpers.js:97:17)Caused by: React ErrorBoundary TypeError: Cannot read properties of undefined (reading ‘type’)
at oqe (Battery.jsx:17:50)
at 686f6707452f9fc847f043e4/div
at emotion-element-f0de968e.browser.esm.js:31:17
at wz (ControlsComponentTabPanel.jsx:7:49)
at DUe (TabPanel.jsx:13:23)
at 686f6707452f9fc847f043e4/div
at emotion-element-f0de968e.browser.esm.js:31:17
at 686f6707452f9fc847f043e4/div
at emotion-element-f0de968e.browser.esm.js:31:17
at 686f6707452f9fc847f043e4/div
at emotion-element-f0de968e.browser.esm.js:31:17
at Ru (Tabs.jsx:26:15)
at emotion-element-f0de968e.browser.esm.js:31:17
at 686f6707452f9fc847f043e4/div
at t (VisualElementHandler.mjs:7:42)
at s (index.mjs:30:24)
at emotion-element-f0de968e.browser.esm.js:31:17
at Tj (PresenceChild.mjs:9:23)
at kn (index.mjs:62:23)
at zo (Controls.jsx:50:20)
at 686f6707452f9fc847f043e4/div
at emotion-element-f0de968e.browser.esm.js:31:17
at 686f6707452f9fc847f043e4/div
at t (VisualElementHandler.mjs:7:42)
at s (index.mjs:30:24)
at emotion-element-f0de968e.browser.esm.js:31:17
at 686f6707452f9fc847f043e4/div
at t (VisualElementHandler.mjs:7:42)
at s (index.mjs:30:24)
at emotion-element-f0de968e.browser.esm.js:31:17
at 686f6707452f9fc847f043e4/div
at emotion-element-f0de968e.browser.esm.js:31:17
at cr (Layout.jsx:22:3)
at rce (DevicesPage.jsx:45:20)
at 686f6707452f9fc847f043e4/Suspense
at ro (App.jsx:285:20)
at t (react-router.js:614:29)
at t (react-router.js:816:29)
at 686f6707452f9fc847f043e4/div
at emotion-element-f0de968e.browser.esm.js:31:17
at t (react-router.js:614:29)
at t (react-router.js:816:29)
at jK (errorboundary.js:50:5)
at Voe (ErrorBoundary.jsx:34:14)
at P9 (App.jsx:46:39)
at I9e (NavContext.jsx:8:26)
at _9e (LayoutContext.jsx:7:38)
at PM (ContextMenuContextProvider.jsx:23:22)
at DndProvider.js:35:11
at t (react-router.js:233:30)
at S9e (GlobalOverlayContextProvider.jsx:17:19)
at 686f6707452f9fc847f043e4/div
at j1e (import.mjs:898:54)
at D1e (import.mjs:865:21)
at 686f6707452f9fc847f043e4/MO
at t3e (index.mjs:26:23)
at 686f6707452f9fc847f043e4/div
at emotion-element-f0de968e.browser.esm.js:31:17
at j9 (AppContainer.tsx:10:33)
at S5e (LocaleProvider.tsx:121:3)
at uxe (real-module.mjs:146:19)
at C5e (LocaleProvider.tsx:19:34)
(anonymous) @ console.js:36
oO @ react-dom.production.min.js:216
ZG.i.componentDidCatch.r.callback @ react-dom.production.min.js:217
nB @ react-dom.production.min.js:131
P0e @ react-dom.production.min.js:220
$0e @ react-dom.production.min.js:259
e.unstable_runWithPriority @ scheduler.production.min.js:18
bg @ react-dom.production.min.js:122
om @ react-dom.production.min.js:252
gO @ react-dom.production.min.js:243
(anonymous) @ react-dom.production.min.js:123
e.unstable_runWithPriority @ scheduler.production.min.js:18
bg @ react-dom.production.min.js:122
DG @ react-dom.production.min.js:123
nd @ react-dom.production.min.js:122
z0e @ react-dom.production.min.js:263
e.unstable_runWithPriority @ scheduler.production.min.js:18
bg @ react-dom.production.min.js:122
Eh @ react-dom.production.min.js:261
H3 @ react-dom.production.min.js:292
Dye @ react-dom.production.min.js:73
n @ helpers.js:97
I’m not sure how this can be reproduced, but I suspect that I during development set the battery value to null, or another invalid value. I’m tried everything; removing, reinstalling, clean out the code to minimal but I can’t get rid of the error.
Here is the repo: https://github.com/norenz92/se.adamnoren.tessie
Any ideas?
