Surging raw materials costs, made worse by Russia's invasion of Ukraine, could set back the dream of Tesla Chief Executive Elon Musk and other auto executives to roll out more affordable electric vehicles.

Rising prices of nickel, lithium and other materials threaten to slow and even temporarily reverse the long-term trend of falling costs of batteries, the most expensive part of EVs, hampering the broader adoption of the technology, said Gregory Miller, an analyst at industry forecaster Benchmark Mineral Intelligence.

And that is on top of a supply chain already snarled by the COVID-19 pandemic and the global chip shortage.