2

I have an issue on checkout page and we are getting below error on console. It looks like address object is not loaded correctly on quote object and we are getting different error each time.

i know here someone asked this question but nothing find proper solution

billing-address.min.js:1 Uncaught TypeError: Cannot read property 'getCacheKey' of null
    at UiClass.<anonymous> (billing-address.min.js:1)
    at Function.notifySubscribers (knockout.min.js:133)
    at Function.valueHasMutated (knockout.min.js:149)
    at Object.observable [as billingAddress] (knockout.min.js:143)
    at select-billing-address.min.js:2
    at checkout-data-resolver.min.js:14
    at Function._.some._.any (underscore.min.js:15)
    at Function.some (observable_array.min.js:4)
    at Object.applyBillingAddress (checkout-data-resolver.min.js:14)
    at Object.resolveBillingAddress (checkout-data-resolver.min.js:13)

ut

Any help would be appreciated.

Thanks.

4
  • did you get any solution on this? – Indranil Maity Jan 9 '20 at 7:46
  • @IndranilMaity still nothing... – Rakesh Donga Jan 9 '20 at 8:35
  • Try below comment, I've just posted. – Indranil Maity Jan 9 '20 at 11:22
  • @RakeshDonga Have got fixed this issue. I have faced same issue. Please share your solution here so we can help. – Kirti Nariya Jul 31 '20 at 6:50
0

Try this -

Change the line 86 of the following file:

vendor/magento/module-checkout/view/frontend/web/js/view/billing-address.js

It should be changed from

if (quote.isVirtual()) {

to

if (quote.isVirtual() || !quote.shippingAddress()) {

Run these commends after making the above change.

php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f
php bin/magento cache:flush

Now check on the site, Hope it will work!

Please note that you can override this file in your custom module or extension. If you don't want to make these changes on Magento core file.

Ref : https://github.com/magento/magento2/issues/24131

1
  • How can fix this issue using create mixins js in custom module ? – Kirti Nariya Jul 31 '20 at 6:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.