Aot compilation issue?
See original GitHub issueType of Issue
[x] Bug Report
[ ] Feature Request
Description
I have created npm packages using ‘ng-packagr’. using created package. i have created one sample. it is running fine in dev mode but if i run that sample in prod mode it throws below error:
ERROR TypeError: Cannot read property ‘viewContainerRef’ of undefined
In My sample i have used ng-template
` <ejs-listview id=‘listview_template’ #listviewInstance [dataSource]=‘dataSource’ [cssClass]=‘cssClass’ [headerTitle]=‘headerTitle’ (actionComplete)=‘onActionComplete($event)’ [showHeader]=‘true’> <ng-template #template let-dataSource=“”>
<div class="{{dataSource.category ? 'clearfix desc e-list-wrapper e-list-multi-line e-list-avatar' : 'clearfix e-list-wrapper e-list-multi-line e-list-avatar'}}">
<span *ngIf="dataSource.imgSrc !== ''" class="e-avatar e-avatar-{{dataSource.imgSrc}}"></span>
<span class="e-list-item-header">{{dataSource.title}} </span>
<span class="e-list-content e-text-overflow" [innerHTML]="dataSource.description"></span>
<div id="list-logo" *ngIf="dataSource.timeStamp !== ''">
<span class="bookmark"></span>
<span class="comments"></span>
<span class="share"></span>
</div>
<div class="timeStamp" *ngIf="dataSource.timeStamp !== ''">{{dataSource.timeStamp}}</div>
</div>
</ng-template>
</ejs-listview>`Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Ahead-of-time (AOT) compilation - Angular
The Angular ahead-of-time (AOT) compiler converts your Angular HTML and ... For help in understanding and resolving these problems, see AOT Metadata Errors....
Read more >Ahead-of-time compilation - Wikipedia
In computer science, ahead-of-time compilation (AOT compilation) is the act of compiling an ... Such problems can be alleviated by profile-guided optimizations.
Read more >Diagnosing a JIT or AOT problem - IBM
By determining whether the JIT or AOT compiler is faulty and, if so, where it is faulty, you can provide valuable help to...
Read more >angular - Why won't aot compiler error on missing property?
AoT compiles the template beforehand, and is looking for the bindings to be generated. On the other hand, having it in an ng-container...
Read more >AoT Compilation not detecting template error #20287 - GitHub
Now, there is no error reported in the AoT compiler, even if I kill the watcher and do a full rebuild. Furthermore, if...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Any update on this?
Any update on this