Have you never interviewed your team before accepting a position? That seems to be the missing part here. And working with friends and family is fine I suppose, but working with people who you share goals with and can actively collaborate with is better in my experience.
The set of people I may have to work closely with is in the dozens. I certainly didn't meet all of them during interviews or even ask to arrange it. Statistically I'm just not going to like every single one of them on a personal level, even though we can work together professionally.