cancel
Showing results for 
Search instead for 
Did you mean: 

Error in getSelectedPaymentTypeState() method after upgrading to spartacus 5.0

former_member836583
Discoverer

Hi,

We have updated the Spartacus version 4.1.0 to 5.0.0.

After the upgrade, we have seen many methods available in the cart page and checkout page are deprecated and new methods are get introduced. We have implemented few of them and working on other changes. While doing so we are are facing error in one of the methods

New Method implemented in Spartacus 5.0.0

- getSelectedPaymentTypeState()

Equivalent Method available in Spartacus 4.1.0

- getSelectedPaymentType()

Error:

node_modules_spartacus_checkout_fesm2020_spartacus-checkout-base_mjs.js:2
RangeError: Maximum call stack size exceeded
at Subscriber._error (Subscriber.js:75:26)
at Subscriber.error (Subscriber.js:55:18)
at MapSubscriber._error (Subscriber.js:75:26)
at MapSubscriber.error (Subscriber.js:55:18)
at FilterSubscriber._error (Subscriber.js:75:26)
at FilterSubscriber.error (Subscriber.js:55:18)
at SwitchMapSubscriber.notifyError (innerSubscribe.js:45:26)
at SimpleInnerSubscriber._error (innerSubscribe.js:13:21)
at SimpleInnerSubscriber.error (Subscriber.js:55:18)
at SwitchMapSubscriber.notifyError (innerSubscribe.js:45:26)

Kindly help with a sollution.

newsapuser99
Discoverer
0 Kudos

@srinivasan-r I am facing same issue with Spartacus upgrade from 4.x to 5.0. Any solution for this?

larissa_pereira
Explorer
0 Kudos

I’m facing this issue also, anyone found a solution?

Accepted Solutions (0)

Answers (0)