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.

Does not work with IVY

See original GitHub issue

=======

Angular version: 8.0.0

ngx-pagination version: 4.0.0

Description of issue: When using NGX-Pagination with IVY turned on you get the following error:

ERROR Error: Export of name 'paginationApi' not found! at cacheMatchingLocalNames (core.js:12842) at resolveDirectives (core.js:12616) at createDirectivesAndLocals (core.js:12058) at ɵɵelementStart (core.js:15324) at PaginationControlsComponent_Template (template.html:2) at executeTemplate (core.js:11982) at checkView (core.js:13333) at componentRefresh (core.js:13097) at refreshChildComponents (core.js:11685) at refreshDescendantViews (core.js:11591)

Steps to reproduce:

  1. Create a new Angular 8.0.0 project
  2. Enable IVY by adding "angularCompilerOptions": { "enableIvy": true }, to the tsconfig.app.json file
  3. Install the package and create the sample project as seen in the readme
  4. Load the page

Expected result: Error is not produced and the module works

Actual result: Error message is displayed in the console and the page does not load

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:4
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
hadley8899commented, Jul 13, 2019

I have created an issue on the official repo

https://github.com/angular/angular/issues/31540

Also created a basic repo for reproduction

https://github.com/hadley8899/angular-ngx-pagination-ivy-issue

0reactions
Flyrellcommented, Nov 7, 2019

Should be working in 9.0.0-next.2.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error when activate Ivy compiler on Angular 10 error NG6003 ...
The error is caused by an internal library that is not builded using Ivy. If you encounter this error because of an internal...
Read more >
Troubleshooting - Axon.ivy 7.0 | Designer Guide
First try to update the driver of your graphics adapter. If this does not work, you may want to switch off DirectX usage...
Read more >
Angular Ivy
Ivy is the code name for Angular's next-generation compilation and rendering pipeline. With the version 9 release of Angular, the new compiler and...
Read more >
Importing $ivy dependencies does not work : SCL-18377
The $ivy imports are recognized by IntelliJ. Actual result: The $ivy impors are NOT recognized by IntelliJ: Imports are not recognized. Hitting Alt+Enter...
Read more >
Understanding Angular Ivy Library Compilation | lacolaco/tech
Angular libraries compiled and published to NPM with this configuration are still compatible for use even if the applications are not ...
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