4

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? Jan 9, 2020 at 7:46
  • @IndranilMaity still nothing... Jan 9, 2020 at 8:35
  • Try below comment, I've just posted. Jan 9, 2020 at 11:22
  • @RakeshDonga Have got fixed this issue. I have faced same issue. Please share your solution here so we can help. Jul 31, 2020 at 6:50

1 Answer 1

2

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 ? Jul 31, 2020 at 6:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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