0

TypeError: stepNavigator.setHash is not a function

I have a javascript error in the console like above, because of this error some shipping method is not showing properly.

Can anyone please tell me how to resolve this error?

I am using Magento 2.2.6.

  • have you made any modifications to checkout steps like added new step ? – Vishwas Bhatnagar Mar 19 at 7:10
  • 1
    problem in adding in js so please share js code in your question – Rakesh Donga Mar 19 at 7:11
  • @VishwasBhatnagar, not new step is added. – jafar pinjar Mar 19 at 7:11
  • @RakeshDonga, I am not added any js code there, which file code i need to share please? – jafar pinjar Mar 19 at 7:12
  • @jafarpinjar added new shipping method ? – Vishwas Bhatnagar Mar 19 at 7:13
0

Do you have added your own design or made a copy of the exist Luma theme?

In my case was this the problem.

Following JS was changed in the original path: vendor/magento/module-checkout/view/frontend/web/js/model/step-navigator.js.

I updated my step-navigator.js file in my theme and it worked.

I hope this will help you :)

PS: I made always Magento updates via composer. Actually this tested with Magento 2.2.8.

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.