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 build with ivy

See original GitHub issue

This package does not appear to build correctly when Ivy is enabled in Angular 8/9:

ERROR in node_modules/ng2-pdfjs-viewer/index.d.ts:3:22 - error TS-996002: Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class

  export declare class PdfJsViewerModule {
                       ~~~~~~~~~~~~~~~~~

There is an open issue in Angular about it: https://github.com/angular/angular/issues/32442

I have created a repo that reproduces this: https://github.com/biltongza/ng2-pdfjs-viewer-ivy-es2015

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
codehippie1commented, Jan 2, 2020

Will update version in couple of days

2reactions
KillerCodeMonkeycommented, Nov 26, 2019

Is it possible to release a new version with this fix? Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

App does not compile with Ivy - Angular 9 #32466 - GitHub
Production app builds with version 8, fails with version 9 and IVY enabled Description Everything in this ticket is about/with the ...
Read more >
Can't compile the Angular application with Ivy enabled
I cloned my angular application from remote and installed the dependencies. Then I tried to build an application locally using ng ...
Read more >
Creating libraries - Angular
Avoid compiling libraries with full-Ivy code if you are publishing to npm because the generated Ivy instructions are not part of Angular's public...
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 >
Understanding Angular Ivy Library Compilation | lacolaco/tech
In this post, I will explain how to compile Angular libraries with Ivy, which is now possible in Angular v11.1, and its details....
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