Easily solved by building them one meter above expected future sea level 😂
And wind turbines have the problem of needing backup power plants when the wind is not blowing. The whole reason for the energy crisis that europe have right now is because germanys backup plants can't run as their supplier have their hand full trying to murder their neighbour.
Wind and solar are great stuff. Puting solar cells on every south facing roff is a no brainer. Hydro- and geothermal powerplants only work where the geography allows it and are in these places also no brainers. But wind is a whole different beast. If you have a good way to save the excess power generated when they are runing then they are super. But right now, outside of repumping back water in to hydro dams, there are no good ways of utilizing it. That leaves at best 50% of a normal country's power demand to be covered by either fossil fuels or nuclear. Unless you are a climate change denier then that choice is pretty simple. Nuclear is the only viable option if you want to keep the lights on.
Might be a problem for landlocked countries like Switzerland or so but all swedish reactors are cooled with sea water which is not in short supply any time soon.