We're going to need a lot of solar panels and an efficient way to transport power from a very sunny place to another location where the loads are. For instance: https://en.wikipedia.org/wiki/Pacific_DC_Intertie The pacific DC intertie right now often ends up being used to transport power from hydroelectric dams in WA/OR to California. But there's nothing to say that something couldn't function the other way if there…
Using even higher voltages makes everything much easier, and the cables’ combined cross sections may need to be less (depending on how much lower the maximum demand at night is) or more (depending on future increases in daytime demand).
Downside is that’s still order-of a few trillion dollars, close to the same as the cost of 36 TWh of batteries (i.e. global overnight only), and we’re likely to make those batteries anyway for the electric cars and when their condition deteriorates enough to be taken out of the cars they're still good enough for grid storage.