curso-angular icon indicating copy to clipboard operation
curso-angular copied to clipboard

erro em contrução de componente

Open ArthurFuchsReis opened this issue 5 years ago • 4 comments

Bom dia Loiane, tudo bem?

Bom, estou na aula 60 do seu curso, e fui incluir o componente alunos como foi solicitado no video.

e me apareceu a seguinte mensagem:

C:\Users\arfur\OneDrive\Desktop\Treinamento Loiane 2\rotas>ng g c alunos Your global Angular CLI version (10.0.2) is greater than your local version (10.0.1). The local Angular CLI version is used.

To disable this warning use "ng config -g cli.warnings.versionMismatch false". More than one module matches. Use the skip-import option to skip importing the component into the closest module or use the module option to specify a module.

C:\Users\arfur\OneDrive\Desktop\Treinamento Loiane 2\rotas>ng config -g cli.warnings.versionMismatch false Your global Angular CLI version (10.0.2) is greater than your local version (10.0.1). The local Angular CLI version is used.

To disable this warning use "ng config -g cli.warnings.versionMismatch false".

C:\Users\arfur\OneDrive\Desktop\Treinamento Loiane 2\rotas>ng g c alunos More than one module matches. Use the skip-import option to skip importing the component into the closest module or use the module option to specify a module.

como devo proceder?

Att,

@ArthurFuchsReis

ArthurFuchsReis avatar Jul 13 '20 13:07 ArthurFuchsReis

Arthur, A instalação do seu Angular CLI local é mais nova que a sua local. Isso não é um erro, somente um alerta. O que vc pode fazer é atualizar sua versão de Angular CLI localmente ( sem o uso do -g), se vc quiser.

AlanBessa avatar Jul 13 '20 15:07 AlanBessa

@AlanBessa Obrigado

ArthurFuchsReis avatar Jul 13 '20 15:07 ArthurFuchsReis

@AlanBessa Eu fiz o que você disse, e deu certo, mas ao criar o componente pelo cli, me aparece a seguinte mensagem:

C:\Users\arfur\OneDrive\Desktop\Treinamento Loiane 2\rotas>ng g c alunos More than one module matches. Use the skip-import option to skip importing the component into the closest module or use the module option to specify a module.

ArthurFuchsReis avatar Jul 14 '20 12:07 ArthurFuchsReis

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Feb 28 '24 02:02 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Mar 07 '24 02:03 github-actions[bot]