we had the exact same error when migrating and we found that the components that were failing were the one with a template
instead of a templateUrl
, and with concatenation inside the template like this one:
@Component({
selector: 'app-dashboard-avancement-graph-dialog',
template: '<app-dialog-container>' +
'<app-dashboard-avancement-graph ' +
'[isFicheRex]="isFicheRex" ' +
'[perimeterSearch]="operationsParams" ' +
'[grapheOptions]="grapheOptions" ' +
'[autoload]="true">' +
'</app-dashboard-avancement-graph>' +
'</app-dialog-container>'
})
export class DashboardAvancementGraphDialogComponent {
@Input() public grapheOptions: GrapheOptionsParameters;
@Input() public operationsParams: PerimeterSearch;
@Input() public speSearch: SpecificSearch;
@Input() public isFicheRex = false;
}
If you replace the quotes and concatenation by back tick the migration succeed:
@Component({
selector: 'app-dashboard-avancement-graph-dialog',
template: `<app-dialog-container>
<app-dashboard-avancement-graph
[isFicheRex]="isFicheRex"
[perimeterSearch]="operationsParams"
[grapheOptions]="grapheOptions"
[autoload]="true">
</app-dashboard-avancement-graph>
</app-dialog-container>`
})
export class DashboardAvancementGraphDialogComponent {
@Input() public grapheOptions: GrapheOptionsParameters;
@Input() public operationsParams: PerimeterSearch;
@Input() public speSearch: SpecificSearch;
@Input() public isFicheRex = false;
}