question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Aot compilation issue?

See original GitHub issue

Type 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:closed
  • Created 4 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
kumaresan-subramanicommented, Apr 15, 2019

Any update on this?

1reaction
kumaresan-subramanicommented, Apr 11, 2019

Any update on this

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found