Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

99
Views
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 answers
Answer question

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 Report

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!