1

After configure AOT with webpack in angular 4, i am facing following issue

 ERROR in : "let-" is only supported on ng-template elements. ("<template ngFor [ngForOf]="parts" [ER
ROR ->]let-part let-isOdd="odd"><span *ngIf="isOdd" class="{{highlightClass}}">{{part}}</span><templ
ate [ngI")
: "let-" is only supported on ng-template elements. ("<template ngFor [ngForOf]="parts" let-part [ER
ROR ->]let-isOdd="odd"><span *ngIf="isOdd" class="{{highlightClass}}">{{part}}</span><template [ngIf
]="!isOd")

I have already converted every template to ng-template. BUT still not sure what causing this error.

Any help is really appricated.

mruanova
  • 6,351
  • 6
  • 37
  • 55
Amit Soni
  • 3,216
  • 6
  • 31
  • 50

1 Answers1

3

I am able to fix this issue after upgrading one of my library i.e. ng-bootstrap.

Usually these type of error occurs, when we use some of old version dependencies.

Amit Soni
  • 3,216
  • 6
  • 31
  • 50