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!
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",
Above three steps should solve the issue.