Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

101
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda