I found the issue. I had used a capital βMβ in MatStepperNext and MatStepperPrevious, but it should be lowercase βmβ. After changing it, itβs working now.