1

I'm very new to programming.trying to implement Angular MatBottomSheet. but getting above error. added angular material. enter image description here

Krishna
  • 11
  • 1

2 Answers2

0

Check this also Angular CLI - Please add a @NgModule annotation when using latest

pass your MatBottomSheet Export and Declarations

@NgModule({
  declarations: [
     MatBottomSheet
  ],
  imports: [
    CommonModule,
    RouterModule.forChild(ProjectRoutes)
  ],
  exports: [
     MatBottomSheet
  ]
})
Chanaka Weerasinghe
  • 5,404
  • 2
  • 26
  • 39
0

You need to share with us the code of your modules.

But firstable try to export the MatBottomSheet from your module.