That's not necessarily a problem. There are different options in the marketplace. If you attend an R1 research university then of course hiring decisions will heavily weight research productivity. But many other smaller schools absolutely do look at teaching ability.