Skip to content
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, switching tabs causes wrong view to be unmounted #25255

Closed
4 of 7 tasks
Jannik-KJ opened this issue May 8, 2022 · 8 comments · Fixed by #25270
Closed
4 of 7 tasks

bug: vue, switching tabs causes wrong view to be unmounted #25255

Jannik-KJ opened this issue May 8, 2022 · 8 comments · Fixed by #25270
Labels
package: vue @ionic/vue package type: bug a confirmed bug report

Comments

@Jannik-KJ
Copy link

Prerequisites

Ionic Framework Version

  • v4.x
  • v5.x
  • v6.x
  • Nightly

Current Behavior

App crashes when navigating between tabs and tabs child pages.

Error thrown:

Uncaught (in promise) TypeError: Cannot set properties of undefined (setting 'mount') at Object.unmountLeavingViews (index.esm.js?ba1f:802:1) at handlePageTransition (index.esm.js?58b7:1320:1)

Expected Behavior

The application can navigate between tabs and child pages of tabsThe application

Steps to Reproduce

on start page (tab 1) ->

  1. Click "go to child page"
  2. click TAB 2
  3. click TAB 1
  4. click TAB 1 again
  5. click TAB 2
  6. click TAB 1
  7. Click "go to child page"
  8. click TAB 2
  9. click TAB 1
  10. click TAB 1 agina

Code Reproduction URL

https://github.com/Jannik-KJ/ionic-6-router

Ionic Info

Ionic:

Ionic CLI : 6.18.1 (/usr/local/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/vue 6.1.3

Capacitor:

Capacitor CLI : 3.5.0
@capacitor/android : not installed
@capacitor/core : 3.5.0
@capacitor/ios : not installed

Utility:

cordova-res : not installed globally
native-run : 1.5.0

System:

NodeJS : v16.13.1 (/usr/local/bin/node)
npm : 8.1.2
OS : macOS Monterey

Additional Information

No response

@ionitron-bot ionitron-bot bot added the triage label May 8, 2022
@Jannik-KJ Jannik-KJ changed the title bug: bug: Ioniq tabs causeing - Cannot set properties of undefined (setting 'mount') error May 9, 2022
@Jannik-KJ Jannik-KJ changed the title bug: Ioniq tabs causeing - Cannot set properties of undefined (setting 'mount') error bug: Ioniq tabs causing - Cannot set properties of undefined (setting 'mount') error May 9, 2022
@anttironty
Copy link

anttironty commented May 10, 2022

Hi, this issue is present in our app aswell with Ionic vue versions over 6.0.8-dev.1644430127.1b9bb92

@tigohenryschultz
Copy link
Contributor

Happening to us too

@liamdebeasi liamdebeasi changed the title bug: Ioniq tabs causing - Cannot set properties of undefined (setting 'mount') error bug: vue, switching tabs causes wrong view to be unmounted May 10, 2022
@liamdebeasi liamdebeasi added package: vue @ionic/vue package type: bug a confirmed bug report labels May 10, 2022
@ionitron-bot ionitron-bot bot removed the triage label May 10, 2022
@liamdebeasi
Copy link
Contributor

Thanks for the issue. Can you try the following dev build and let me know if it resolves the issue?

npm install @ionic/vue@6.1.5-dev.11652207609.1ba60afe @ionic/vue-router@6.1.5-dev.11652207609.1ba60afe

@anttironty
Copy link

Thanks for the issue. Can you try the following dev build and let me know if it resolves the issue?

npm install @ionic/vue@6.1.5-dev.11652207609.1ba60afe @ionic/vue-router@6.1.5-dev.11652207609.1ba60afe

I can confirm that the following dev build resolved the issue in our case. Thank you so much for the quick fix!

@Jannik-KJ
Copy link
Author

Jannik-KJ commented May 11, 2022

@liamdebeasi I can confirm that this build solves our issues as well! 👍

Should I just close this bug or do you want to link it to a PR?

@Jannik-KJ Jannik-KJ reopened this May 11, 2022
@liamdebeasi
Copy link
Contributor

You can keep the issue open for now. We will close the issue once the fix has been merged into the main branch.

@liamdebeasi
Copy link
Contributor

Thanks for the issue. This has been resolved via #25270, and a fix will be available in an upcoming release of Ionic Framework.

@ionitron-bot
Copy link

ionitron-bot bot commented Jun 17, 2022

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.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Jun 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
package: vue @ionic/vue package type: bug a confirmed bug report
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants