Skip to content

feat: using ion-tab-bar without ion-tabs or ion-router-outlet #30361

Description

@z0lo13

Prerequisites

Ionic Framework Version

v8.x

Current Behavior

[Vue warn]: injection "tabBarData" not found.
Vue warn]: Unhandled error during execution of native event handler 
  at <IonTabButton tab="3" > 
  at <IonTabBar color="light" > 
  at <Example> 
  at <IonContent class="ion-padding" > 
  at <IonApp> 
  at <App>

Expected Behavior

to work without the need of ion-tabs or router outlet. The navigation will be done by method.

Steps to Reproduce

https://stackblitz.com/edit/hknvlmdm

Code Reproduction URL

https://stackblitz.com/edit/hknvlmdm

Ionic Info

ionic info

Ionic:

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

Capacitor:

Capacitor CLI : 7.2.0
@capacitor/android : 7.2.0
@capacitor/core : 7.2.0
@capacitor/ios : 7.2.0

Utility:

cordova-res : 0.15.4
native-run : 2.0.1

System:

NodeJS : v22.12.0 (/Users/z0lo/.nvm/versions/node/v22.12.0/bin/node)
npm : 10.9.0
OS : macOS

Additional Information

No response

Activity

  1. jacobg commented on Apr 21, 2025

    @jacobg

    Try the ion-segment-view content. It's less opinionated about how you use it.

  2. z0lo13 commented on Apr 21, 2025

    @z0lo13
    Author

    @jacobg not sure how that could help, we only need the tab bar buttons. And routing is handled via router in method.

  3. changed the title [-]bug: using ion-tab-bar without ion-tabs or ion-router-outlet[/-] [+]feat: using ion-tab-bar without ion-tabs or ion-router-outlet[/+] on Apr 24, 2025
  4. added
    type: feature request
    on Apr 24, 2025
  5. brandyscarney commented on Apr 24, 2025

    @brandyscarney
    Member

    Thank you for the issue! I have marked this as a feature request as ion-tab-bar has always required an ion-tabs component.

  6. z0lo13 commented on May 1, 2025

    @z0lo13
    Author

    @brandyscarney it would also be great if the animation is present when navigating between tabs.

  7. ShaneK commented on Oct 16, 2026

    @ShaneK
    Member

    Thanks for reporting the issue! This isn't a problem anymore in V9, I created a PR for regression testing it just to make sure it doesn't become an issue again, but this was sort of fixed by accident. The follow up animation request should be a feat request outside of the scope of this bug report. You'll need to make a new issue for that

  8. added a commit that references this issue on Oct 19, 2026
    6fddbad
  9. ionitron-bot commented on Nov 18, 2026

    @ionitron-bot

    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.

  10. locked and limited conversation to collaborators on Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    package: vuetype: feature request

    Fields

    Stage

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions