Angular2 AOT compiler keeps asking for name
2 answers
NPM gets confused between a component generator package called ngc so remove it then AOT build will be smooth
npm uninstall ngc -g
then in 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",
+3
source to share