Aptera has this planned but not sure if they ever reach market maturity.
There also was a project car from the Nordics I think. Can't recall the name though.
Main problem is the large amount of energy a car needs vs what kind of surface area you have and efficiency we get.
An ideal (100% effiwncy) solar cell of 5m² would still need 20 hours to charge a 100kWh battery. And we are way off on area an efficiency in reality.