-
Notifications
You must be signed in to change notification settings - Fork 13.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: vue, undefined error when leaving tabs and coming back #24332
Comments
We're getting this bug too, seems to happen fairly often/easily. |
Yes! Others have reported this as well! https://forum.ionicframework.com/t/random-javascript-error-when-navigating/216785/7 |
Hey all 👋 thanks for reporting this issue and for the helpful conversation on the forums. The React and Vue implementations for routing are very similar and upon a further investigation there are some additional checks for the leaving element with route transitions that exists in the React implementation that aren't present in the Vue implementation. Carrying forward some added context from the forum discussion that highlights the stacktrace/exception:
I'm working on routing issues for the next few days, so I'll work with the team to get a dev build that addresses the solution for the Vue implementation. Would greatly appreciate some extra help testing that dev build in your app(s) when it's available. |
I'll be willing to test any new dev builds for these issues, they've been plaguing me for a while. Ping me when you have a dev build ready. Another routing issue if you have time: #24303 |
Additional reproduction case that seems to have the same underlying cause: https://github.com/tigohenryschultz/router-undefined-reference Buttons to click to trigger errors:
|
Can everyone test the following dev build and let me know if it resolves the issue?
Note: This is an Ionic 5 dev build. However, this fix will be available in both Ionic 5 and Ionic 6 when it ships. |
Still seeing an issue with router.go, I went back -3 times from a tabs page, my log shows it should have rendered page 'a', but it was still on page 'b'. No errors. After clicking back again I received:
This might be more related to the ticket @amandaesmith3 mentioned: https://github.com/tigohenryschultz/router-undefined-reference |
Also reproduced this tickets bug again:
|
Seems like a different issue. I reopened #24303 and we will investigate further. |
Still getting:
|
@tigohenryschultz This is related to #24303, not this issue. The |
… context (#24337) resolves #24332 Co-authored-by: Liam DeBeasi <[email protected]>
Thanks for the issue. This has been resolved via #24337, and a fix will be available in an upcoming release of Ionic Framework. The issue mentioned in #24332 (comment) and #24332 (comment) will be tracked in #24303. |
… context (#24337) resolves #24332 Co-authored-by: Liam DeBeasi <[email protected]>
This has been released in Ionic 6.0.1 and Ionic 5.9.3. Ionic 5 users can use the
|
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Prerequisites
Ionic Framework Version
Current Behavior
When navigating, occasionally you'll get an error when exiting a page and entering into a new page
Expected Behavior
No javascript errors
Steps to Reproduce
It's very random, but the repo I have made shows it. I have also made a video demostrating this:
https://www.youtube.com/watch?v=4SvtlCTgn7k
Code Reproduction URL
https://github.com/tylerclark/NavigationIssue
Ionic Info
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: