I don't think that genAI will replace developers. I do think it's possible that it will change what being a developer means, though. The real question, I think, is "if this change happens, is it something you could be OK with?"
My personal answer to that is "no", but I'm close enough to retirement that I don't have to consider changing careers to avoid it. I'll be gone if/when it becomes a real issue. However, if I were closer to the front end of my career, I'd certainly be looking to change, perhaps to technical writing.