Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

108
Visualizações
Angular2 AOT compiler keeps asking for Name

Is there a reason (that I can fix) why when I do:

ngc -p tsconfig.aot.json

That in response, it asks for:

Name:

It seems that the ngc simply ignores my tsconfig.aot.json.

What could be the reason for this?

Thanks!

over 4 years ago · Santiago Trujillo
2 Respostas
Responde à pergunta

0

NPM is confused between the Component generator package called as ngc, So uninstall it, then AOT build will go on smooth

npm uninstall ngc -g

then in your package.json make an entry

 "scripts": {
    "ngc": "node_modules/.bin/ngc -p ./tsconfig-aot.json",
    "start": "npm run ngc && webpack-dev-server --inline --config config/webpack.dev.js --progress --port 3000",
    "webpack": "npm run ngc && webpack --config config/webpack.dev.js",
over 4 years ago · Santiago Trujillo Relatório

0

  1. Check your package.json , remove the any 'ngc' module references.
  2. Clean your node_modules folder
  3. Re-install the required angular-cli modules

Above three steps should solve the issue.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda