I've been diving into Angular 2 and came across this tutorial to learn more.
After using the command below to compile my app:
"node_modules/.bin/ngc" -p tsconfig-aot.json
I encountered an issue where only node_modules were generated, no output from my actual app. https://i.sstatic.net/fth61.png
If anyone has encountered a similar problem or knows of an alternative solution, your help would be greatly appreciated.
Here is my tsconfig-aot.json configuration:
{
"compilerOptions": {
"target": "es5",
"module": "es2015",
...
},
"files": [
"app/app.module.ts",
"app/main.ts"
],
"angularCompilerOptions": {
"genDir": "./aot",
"skipMetadataEmit": true
}
}
//https://github.com/angular/angular/issues/11689
And here is my package.json file:
... ...Upon further research, some suggest that downgrading TypeScript to version 2.0.10 may solve the issue, but unfortunately, it didn't work for me.
For context, I am running Windows 7.