Olá Senhores,
Seguindo o tutorial recebi a seguinte mensagem. Estou na última versão do angular, 12.
Alguém experimentou este problema?
Error: src/app/app.module.ts:10:7 - error NG6001: The class 'NovaTransferenciaComponent' is listed in the declarations of the NgModule 'AppModule', but is not a directive, a component, or a pipe. Either remove it from the NgModule's declarations, or add an appropriate Angular decorator.
10 , NovaTransferenciaComponent
~~~~~~~~~~~~~~~~~~~~~~~~~~
src/app/nova-transferencia/nova-transferencia.component.ts:9:14
9 export class NovaTransferenciaComponent{
~~~~~~~~~~~~~~~~~~~~~~~~~~
'NovaTransferenciaComponent' is declared here.
Error: src/app/nova-transferencia/nova-transferencia.component.ts:7:3 - error TS1146: Declaration expected.
7 });
Edit:
O erro do meu código era que eu coloquei um ;** errado no arquivo **nova-transferencia.component.ts
import { Component } from "@angular/core";
@Component({
selector: 'app-nova-transferencia',
templateUrl: './nova-transferencia.component.html',
styleUrls: ['./nova-transferencia.component.scss']
})**;**
export class NovaTransferenciaComponent{
}
Antes do Export não tem vírgula. Fica a dica rs