Giter Site home page Giter Site logo

course-manager's People

Contributors

dependabot[bot] avatar wesllhey avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

course-manager's Issues

Erro na classe

Na classe Course, o ng serve apresenta erros de compilação caso a classe não seja ao menos inicializada na criação da classe, precisei adicionar o undefined pra funcionar.

export class Course{
id: number | undefined;
name: string | undefined;
imageUrl: string | undefined;
price: number | undefined;
code: string | undefined;
duration: number | undefined;
rating: number | undefined;
created: string | undefined;
}

ng --version 'ng' não é reconhecido como um comando interno ou externo...

Olá pessoal, Estou tendo este erro:

"'ng' não é reconhecido como um comando interno
ou externo, um programa operável ou um arquivo em lotes."

ao rodar o comando $ng --version (cmd/windows), mesmo configurando o PATH (nas configurações avançadas), incluindo o caminho da pasta bin, do node, fiz todos os procedimentos recomendados no stackoverflow e FAQ's da alura e nada resolveu, poderiam me Ajudar?

*obs.: o comando $npm install -g @angular/cli@latest é executado sem qualquer problema

Acredito que muitos estejam com este issue!

Poderia me ajudar prof. @wesllhey?

Agradecimento

Olá, professor. Foi a forma rápida que achei de entrar em contato contigo!

Queria agradecer pelas suas aulas.
Já fiz diversos módulos no DIO(pelo menos uns 10) com diferentes professores, e as suas aulas se destacaram! Aquele ponto de tentar mostrar o que pode causar erro, e também o resumo da aula no final destacando os diversos pontos.
Tem sido realmente bacana aprender angular nesse formato!
Obrigado!!!

Erro em this.activatedRoute.snapshot.paramMap.get('id'):

Ao executar o código do tutor, o Angular apresenta o erro TS2531: Object is possibly 'null'.
então fazendo uma breve pesquisa, notei que basta adicionar uma exclamação no parênteses depois do id, ficando o código assim:

this.courseId = +this.activatedRoute.snapshot.paramMap.get('id')!;

Conflito de dependências @angular/compiler@

Olá! Podem ajudar a resolver esse erro.
Tenho a versao Node 13.3.8. Realizei um 'fork' para acompanhar as aulas, mas não consigo porque aparece esse conflito de dependencias.

C:\Users\55119\Desktop\Edson\DIO\Cursos\Angular\course-manager>ng serve
Could not find the '@angular-devkit/build-angular:dev-server' builder's node package.

npm ERR! @angular/compiler@"~8.2.13" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/compiler@"13.3.8" from @angular/[email protected]
npm ERR! node_modules/@angular/compiler-cli
npm ERR! dev @angular/compiler-cli@"^13.3.8" from the root project
npm ERR! peer @angular/compiler-cli@"^13.0.0 || ^13.3.0-rc.0" from @angular-devkit/[email protected]
npm ERR! node_modules/@angular-devkit/build-angular
npm ERR! @angular-devkit/build-angular@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See C:\Users\55119\AppData\Local\npm-cache\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\55119\AppData\Local\npm-cache_logs\2022-05-13T05_03_56_753Z-debug-0.log

rota raiz não reconhecida.

Ao transferir a responsabilidade das rotas do curso para o course.module.ts você deixou de passar a rota /courses a qual o redirectTo se refere, então no lugar de ir para a pagina de cursos o Angular redireciona para o 404.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.