«Fatal error: Call to a member function getPrice() on null in app/code/Magento/Checkout/Block/Shipping/Price.php on line 71» on the frontend checkout/cart page

This is because thr setShippingRate method has not been called yet:

How to fix:

Locate the line:

Replace it with the new one:

return !$this->shippingRate ? null : $this->priceCurrency->convertAndFormat($this->shippingRate->getPrice());