Hydrogen does also have some issues.
You can run it through a fuel cell. This gives you a zero emissions vehicle but it does require quite a lot of platinum. The total available on the planet is insufficient to electrify all vehicles this way and the same technology is sought by trains, ships and planes which are likely to pay more for it.
You can burn hydrogen as an alternative to fossil fuels. The hardware is then cheap and uses abundant materials but whilst it no longer emits carbon dioxide, it does emit NOx so is not zero emissions.
Hydrogen can be made by electrolytically splitting water. This is however not a very efficient process overall. From a wind turbine to a power line to an inverter to a battery to a motor is around 80% efficient. However, from a wind turbine to an electrolyser to a fuel cell is around 40% efficient. From a wind turbine to an electrolyser to an internal combustion engine is around 20% efficient.
Lithium-based batteries are not a good long-term approach but there are other battery types under serious development. Lithium is at around 280Wh/kg at the moment and the rate of improvement is decreasing. It will probably top out at around 400Wh/kg but there are other chemistries capable of up to 1500Wh/kg. For context, that means if you could get these to work commercially then if you did a straight swap in a current generation electric car with a range of 250 miles, you could take that up to over 350miles when lithium batteries are optimised, or up to over 1200 miles with the best batteries anyone has yet achieved.
I am not an advocate for batteries, or for hydrogen, although I have worked on both technologies, but we are going to see a shift from where we are and these two are the front-runners. The situation with coal for heritage railways is a good comparator. The last mine in Britain which produces steam coal is now closing. The heritage steam industry will not be shutting down - it will start by importing coal and is then looking at move on to bio-derived alternatives (OK, so technically coal and oil are bio-derived, but I'm talking about recent rather than fossil). I am not too worried about having options.
Alec