Estou seguindo as aulas passo a passo. E acredito ter feito tudo certo. Não dá nenhum erro de compilação no meu VSCode. Mas eu recebo o seguinte erro no console do browser:
Uncaught Error: Unexpected value 'HttpClient' imported by the module 'PhotosModule'. Please add a @NgModule annotation.
o código do meu photos.module.ts
:
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { HttpClient } from '@angular/common/http';
import { PhotoComponent } from './photo/photo.component';
import { PhotoListComponent } from './photo-list/photo-list.component';
import { PhotoFormComponent } from './photo-form/photo-form.component';
@NgModule({
declarations: [ PhotoComponent, PhotoListComponent, PhotoFormComponent ],
imports: [HttpClient, CommonModule]
})
export class PhotosModule {}