Plants take 10 year to build because of a purposely complicated burocratic process. We churn out at least 1 nuclear submarines a year.
Edit: I still think you’re right, renewables and batteries are cheaper than nuclear in most first world countries, but the building process doesn’t have to be that long.