sudhir
sudhir

Reputation: 1437

Angular 2 : Aot not generating app folder

I have implemented aot in my Angular 2 project, resolved all errors an finally my

"node_modules/.bin/ngc" -p tsconfig-aot.json

run successfully but I see only node_modules folder in aot folder and no app folder in it. So where can I get AppModuleNgFactory to bootstrap it?

Upvotes: 1

Views: 177

Answers (1)

eko
eko

Reputation: 40677

Downgrading typescript to 2.0.2 solved the problem for me. (Depending on your angular version)

package.json:

"devDependencies": {
    "typescript": "2.0.2" <-- make it like this

Remove your typescript module inside node_modules folder and run an npm install again.

Similar problems: https://github.com/angular/angular/issues/10792

Upvotes: 1

Related Questions