Incidentally, residential solar isn't really a problem because you already have non-uniform demand throughout the day. The longstanding solution is to have "peaker plants" that only come online during peak hours. It's only a problem if you want to replace 100% of generation capacity with solar and have no storage solution. But that doesn't stop you from replacing e.g. 50% of generation with solar, and then running other plants less often and paying the fuel savings to the solar generators.
There are also ways to shift demand around, namely through pricing. Make electricity cheaper during sunlight hours and more expensive between sunset and 8PM and suddenly tons of people are doing laundry midday on a weekend instead of in the evening during peak hours. Which also makes it more economical for people who can't avoid peak hour usage to buy an energy storage system so they can run on stored energy when the power company is charging high rates and then charge it back up when power is cheaper.
There are also ways to shift demand around, namely through pricing. Make electricity cheaper during sunlight hours and more expensive between sunset and 8PM and suddenly tons of people are doing laundry midday on a weekend instead of in the evening during peak hours. Which also makes it more economical for people who can't avoid peak hour usage to buy an energy storage system so they can run on stored energy when the power company is charging high rates and then charge it back up when power is cheaper.