CdkStepper usage throwing NullR3InjectorError

140 Views Asked by At

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.

0

There are 0 best solutions below