Nuclear power was absolutely the answer, 50, 30, or even 20 years ago, but given the long construction times and cost relative to wind and solar backed by battery and hydro, the time for new construction has probably passed outside of niche regions. It’s still much more cost effective to keep existing plants online, but when the primary bottleneck is funding focusing on the more cost effective technologies just makes sense.
Of course, I imagine that’s the same reason why the oil and gas companies that have been fearmongering about nuclear power for the last half century have suddenly come around on it.