Jordan Benge
1 min readApr 2, 2019

--

Hey there Erick,

Did you make sure to add the tabs id to your ion-tab-bar, as well as the #myTabbar?

<ion-tab-bar #myTabBar id="myTabBar" slot="bottom">

If you changed the name of the id (in this example it’s myTabBar then you’ll receive that error if you don’t also change it in the hideTabs() function, because of this line:

const tabBar = document.getElementById('myTabBar');

Alternatively, if you followed those steps and it’s still not working (which is weird cause it is for me), you could always try adding a type of any to const tabBar and seeing if that works for you instead?

const tabBar: any = document.getElementById('myTabBar');

--

--

Jordan Benge
Jordan Benge

Written by Jordan Benge

My name is Jordan Benge, I’m a freelance developer, who sometimes likes to write helpful articles on Medium for people who want to do things but don’t know how.

No responses yet