I have set my back link on a navbar , when I click to go back, it reroutes, but I do get the following in console:
Uncaught TypeError: Cannot read property 'route' of undefined
at Router.back (back.js:719)
at afterAnimation (back.js:440)
at eval (back.js:480)
at onDone (router-class.js:360)
at HTMLDivElement.eval (router-class.js:364)
at HTMLDivElement.fireCallBack (dom7.module.js:611)
at HTMLDivElement.handleEvent (dom7.module.js:409)
back @ back.js:719
afterAnimation @ back.js:440
eval @ back.js:480
onDone @ router-class.js:360
eval @ router-class.js:364
fireCallBack @ dom7.module.js:611
handleEvent @ dom7.module.js:409
components-router.js:95
Uncaught TypeError: Cannot read property 'removeChild' of null
at Router.removePage (components-router.js:95)
at afterAnimation (back.js:427)
at eval (back.js:480)
at onDone (router-class.js:360)
at HTMLDivElement.eval (router-class.js:364)
at HTMLDivElement.fireCallBack (dom7.module.js:611)
at HTMLDivElement.handleEvent (dom7.module.js:409)
I need to look into that. Can’t say with certainty, but I think I didn’t mess with routs that much. Anyway, after I check, I’ll get back with my code and some more details.
Thanks.
Did you ever figure out what the problem was? Im trying to do the same and im getting the same error.
chunk-XPVAEOMI.js?v=af4d76cc:7266 Uncaught TypeError: Cannot read properties of null (reading ‘route’)
at Router.back (chunk-XPVAEOMI.js?v=af4d76cc:7266:55)
at Framework7.handleClicks (chunk-XPVAEOMI.js?v=af4d76cc:9058:21)
at chunk-XPVAEOMI.js?v=af4d76cc:3008:24
at Array.forEach ()
at chunk-XPVAEOMI.js?v=af4d76cc:3007:18
at Array.forEach ()
at Framework7.emit (chunk-XPVAEOMI.js?v=af4d76cc:3001:17)
at emitAppTouchEvent (chunk-XPVAEOMI.js?v=af4d76cc:4224:9)
at HTMLDocument.appClick (chunk-XPVAEOMI.js?v=af4d76cc:4230:5)
Hey there.
It was a long time ago, and I just saw your message.
I do not remember how I got out of that situation.
Have you solved it by now?
If not, let’s take a look at it!