Fortunately, wind energy generation also exists, and is a nearly ideal complement to solar power, because it's nearly as cheap as solar, and its energy peaks are mostly anti-correlated with solar energy peaks (typically the winter and sunset are the windiest parts of the year / day).
Wind's main problem is that it's more reliant on large scale projects (rather than solar which scales all the way from a pocket calculator to an installation the size of city), and wind is also more susceptible to regulatory / NIMBY sabotage than solar.
Especially with China currently flooding the market with cheap solar and batteries, I think it makes sense for governments to focus much more of their attention and efforts on promoting (or at least getting out of the way of) wind projects, and let the market drive solar adoption.
For example in germany, wind is 31.4% of production, solar is 16.8%. For the EU it's 18.1% for wind and 11% for solar.
Wind is often producing more during the morning/night where solar falls short.