The biggest issue with electric semis is that trucks have a maximum weight limit, and the battery is much heavier than fuel for the same mileage. As much as you may get the same range, if you can't carry as much cargo, you lose the benefits of price per mile.
Note that Tesla didn't mention the weight of the battery when announcing the truck. (Though I assume they believe they can get it even lighter before they release production models)