If everyone has an electric car then, in principle, that battery can be used to keep your house alive for quite a long time. And of course once the battery capacity has declined so that you are no longer satisfied with the car's range you can repurpose the battery for home use to store the output of solar panels on your roof.
It's a huge problem in terms of time and finance but not a difficult technological one.