The public may have thought that electric cars were all but dead. But smart people knew that their time had not yet come.
Oh, and look! Excepting high end niches that Tesla figured out, and government subsidies, that timeline from 20 years ago looks to come true pretty much on schedule.
I admire Elon Musk. Without him, reusable rockets wouldn't have happened for many more years. But electric cars would have happened with or without him.
And since companies were actually trying to make money, and cars were becoming more fuel efficient, there wasn't the demand. In fact, there still isn't that high of a demand for electric cars these days.
I'm not discounting that Tesla made some innovations. But people make it out like Tesla radically changed the functionality of the electric car when it's still largely the same technology, just more advanced.
To give an example, the Nissan Leaf was out well before people even heard of Tesla, and that was one of the most popular and widely sold electric vehicles. At the time, Tesla only had the 100k Roadster.
Other improvements drive the capacity even higher through packaging innovations and possible manufacturing improvements as well.
I highly doubt it was due to range anxiety. Even the early Tesla roadster could, at most, go 200 miles. That's nothing on a gasoline engine.
The Nissan Leaf does not look that ugly. It looked like your standard hatchback for the time.
Batteries did improve but its not like Tesla had access to better batteries than GM (at least in their early days).
1955; drag coefficient 0.36:
https://en.wikipedia.org/wiki/Citro%C3%ABn_DS
Since then we've come quite a bit further, the TM3 has 0.23, which is a substantial improvement but neither car looks ugly.