Reputation: 11176
When I run the offline compiler ngc on an Angular 2 RC5 vanilla project created by angular-cli, it does nothing.
Here's what I did
Setup:
ng new my-project
cd my-project
npm install @angular/compiler-cli typescript@next @angular/platform-server @angular/compiler
Running the compiler
./node_modules/.bin/ngc -p ./src
The command output nothing and I did not see it generate a min.ngfactory.ts
What am I missing?
Upvotes: 5
Views: 1488
Reputation: 1445
Short answer: make sure you are using Typescript 2.0.10. Fix the version on your package.json
file.
Discussion about it: https://github.com/angular/angular/issues/11689
Upvotes: 0
Reputation: 81
I encountered the same issue and I solved this by down grade typescript to 2.0.2.
I found this on: https://github.com/angular/angular/issues/11689
Upvotes: 4