Magento 2 – Fix Shipping Method Not Working Error

fedexmagento2PHPshipping

I have enabled Free Shipping Method and Fedex in Magento 2 but during checkout I get an error as shown below –

enter image description here

What might be the issue ?

Best Answer

you need to add code to this one file.

pub/static/frontend/magento/theme/en_US/Magento_Checkout/js/view/billing-address.js

addressOptions.push(newAddressOption);

       // start adding fix
       if (_.isEmpty(countryData())) {
    countryData(customerData.reload(['directory-data'], false));
       }
       // end adding fix

return Component.extend({

you need to copy code in your Magento_Checkout/js/view/billing-address.js extension file in also so once you deploy it will not delete.