'Huge angular template causes error TS2563: The containing function or module body is too large
We generate our angular html templates with code generators and one of the 300 HTML templates is about 11k LOCs. Its really that huge and consists basically of many *ngIfs to present the same data in different ways depending on a flag.
During production build, this template causes error TS2563: The containing function or module body is too large for control flow analysis even for simple [(ngModel)]="selected.batchSeq" bindings for the last third of the template.
Is there any way to disable the analysis for the specific template or to increase the the limit for the control flow analysis?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
