When there's no sun, then other countries probably have sun. When there's no sun, there's hydro. When there's no hydro there's wind. When there's no wind, there's tidal. When there's no tidal there's geothermal. And when there's none of those, there's stored energy in batteries.
And if for some reason all of those combined can't satisfy the demand, then there's nuclear as a last resort.
And if there's none of any of those at all, then we've probably got bigger problems anyway