China understood this and is not just betting on both solar and nuclear like mad, they're also burning coal (so that the EU btw can cosplay being green, while offloading the production of many things it consumes to China).
As a result energy prices in China are something like 7x cheaper than in Germany.
Those with lots of energy saw their GDP growth in the 21st century while those like the EU, with ultra pricey energy (due to stupid decisions like closing nuclear power plants only to then reopen them) saw hardly any GDP growth, inflation-adjusted in USD, in the 21st century.
No GDP growth means ever more poor people and ever more indebted governments.
I'm all for transitioning away from fuel and coal, but do it pragmatically. We don't need communists (that'd be the "green" parties [1]) who want to make the lives of everybody miserable taking decisions related to energy.
[1] green people who, like watermelons, are only green on the outside and then bright extremist red on the inside
Going into the future, multiple energy sources will power future civilizations, multiple battery technologies will store energy what is wrong with multiple solutions as long as you make provisions not to completely destroy the environment you live in.
Source?
I hate political labels on principle, but I admit I'd find it fitting if some green parties started to be called "watermelon parties" for the reason you described.
There's a really strong incentive to keep energy generation cheap, because pretty much every social and political issue is downstream of it.