Error: Unexpected value 'ImagenPipe' declared by the module 'AppModule'. Please add a @Pipe/@Directive/@Component annotation. at verifySemanticsOfNgModuleDef (:8100/vendor.js:62999) at Function.get (:8100/vendor.js:62934) code example

Example 1: Unexpected value 'BrowserAnimationsModule' declared by the module 'AppModule'.

Unexpected value 'BrowserAnimationsModule' declared by the module

Example 2: Please add a @Pipe/@Directive/@Component annotation.

import { SharedModule } from './modules/shared/shared.module';

@NgModule({
  declarations: [
     // Should not have been added here...
  ],
  imports: [
     SharedModule
  ],