I think the reason electric aircraft are struggling is because of physics. Gasoline has far more gravimetric energy density than lithium ion batteries. And weight matters a lot more for flying than driving. One of the benefits of gasoline is you burn it off while flying, which makes the plane lighter, which increases the range. This is not a negligible effect - pilots are taught to take this into effect when planning flights. It's calculated by all commercial airlines.
Now on top of that add that it costs significantly more and you have what is, by at least the metric above, an objectively worse product for a higher price. Yes, there are other advantages but limited range is a much bigger deal for flying than it is for driving.
There's also safety. Planes can take off at a higher maximum weight than that at which they can safely land. In an emergency shortly after takeoff (when most emergencies occur), fuel may have to be dumped to reduce landing weight. So that's a double-whammy for battery-electric planes; they can't safely take off over their landing weight, which limits their already-short range.
Now on top of that add that it costs significantly more and you have what is, by at least the metric above, an objectively worse product for a higher price. Yes, there are other advantages but limited range is a much bigger deal for flying than it is for driving.