CdkStepper usage throwing NullR3InjectorError

Discussão em 'Angular' iniciado por Aastha Bist, Janeiro 24, 2025.

  1. Aastha Bist

    Aastha Bist Guest

    I'm trying to import CdkStepperModule to properly use cdk-steps and cdk-stepper to build a stepper. The app build is successful, but in console, this error occurs on trying to use the component.

    ng-admin.min.js:54419 ERROR NullInjectorError: R3InjectorError(AppModule)[CdkStepper -> CdkStepper]:
    NullInjectorError: No provider for CdkStepper!


    I have tried the following:

    • Importing CdkStepperModule in the module where cdk-steps is being used
    • Adding CdkStepperModule in app module @NgModule imports

    Both of these did not work.

    Continue reading...

Compartilhe esta Página