Hi Team,
Can anyone provide the solution for the above error. We are facing this issue from last week but still upto now we didn't find any solution for this.
Kindly Help asap to the error resolved.
vendor.bundle.js:51217 EXCEPTION: Uncaught (in promise): Error: Template parse errors:
"let-" is only supported on template elements. ("
<p-dataTable [value]="cars" expandableRows="true">
<ng-template [ERROR ->]let-car pTemplate="rowexpansion">
<div class="ui-grid ui-grid-responsive ui-fluid" style="): DashboardComponent@3:21
'ng-template' is not a known element:
<p-dataTable [value]="cars" expandableRows="true">
[ERROR ->]<ng-template let-car pTemplate="rowexpansion">
<div class="ui-grid ui-grid-responsive ui-"): DashboardComponent@3:8
Error: Template parse errors:
"let-" is only supported on template elements. ("
<p-dataTable [value]="cars" expandableRows="true">
<ng-template [ERROR ->]let-car pTemplate="rowexpansion">
<div class="ui-grid ui-grid-responsive ui-fluid" style="): DashboardComponent@3:21
'ng-template' is not a known element:
<p-dataTable [value]="cars" expandableRows="true">
[ERROR ->]<ng-template let-car pTemplate="rowexpansion">
<div class="ui-grid ui-grid-responsive ui-"):

Regards,
SAPAriba Team
Which Angular version do you use? ng-template is Angular4
Please use forum for support requests, seems to be related to your Angular version.
faced the same issue... but now fixed it
Try template instead of ng-template...it's working fine for me
@binary2quantum Works for me too. I use angular 2

Error: Template parse errors:↵"let-" is only supported on ng-template elements. ("eadOnly]="true">
↵ ]let-item="item">
Above is my error facing with wijmo after upgrading to angular 5 version
+1, same error after update to angular 5 from angular 2. Any ideas how to fix?
Hey @himajaM, just replace with
Was anyone able to resolve this issue ?
import "TableModule" on @NgModule.
Even i'm facing this issue on ng build --prod. But i do not have any tags it is all replaced with
ERROR in : "let-" is only supported on ng-template elements. ("
]let-row [ngForOf]="rows" let-i= "index" >
: "let-" is only supported on ng-template elements. ("
]let-i= "index" >
: "let-" is only supported on ng-template elements. ("}" style="font-size:1.5em; cursor:pointer">
]let-column [ngForOf]="columns" let-j= "index" >
<td (click)="cellClick(row, column.n")
: "let-" is only supported on ng-template elements. ("or:pointer">
]let-j= "index" >
<td (click)="cellClick(row, column.name, i)" *ngIf="!column.isEditi")
I face the same problem and replacing \
@mgleria That fixed it for me, thanks!
Most helpful comment
+1, same error after update to angular 5 from angular 2. Any ideas how to fix?