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.

Angular 10 support

See original GitHub issue

Generic type is missing

ERROR: node_modules/ng2-pdfjs-viewer/index.d.ts:4:23 - error TS2314: Generic type 'ModuleWithProviders<T>' requires 1 type argument(s).

4     static forRoot(): ModuleWithProviders;
                        ~~~~~~~~~~~~~~~~~~~

An unhandled exception occurred: node_modules/ng2-pdfjs-viewer/index.d.ts:4:23 - error TS2314: Generic type 'ModuleWithProviders<T>' requires 1 type argument(s).

4     static forRoot(): ModuleWithProviders;
                        ~~~~~~~~~~~~~~~~~~~

See "/private/var/folders/n2/snmpy18s6k78wl38lb3hdr0r0000gn/T/ng-FawP4Q/angular-errors.log" for further details.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:18 (3 by maintainers)

github_iconTop GitHub Comments

6reactions
denis-starchenkocommented, Jun 26, 2020

I try to update angular version and have following problem. After running command ng update @angular/cli @angular/core appears following message:

Package "ng2-pdfjs-viewer" has an incompatible peer dependency to "@angular/core" (requires "^8.0.0" (extended), would install "10.0.0").
✖ Migration failed: Incompatible peer dependencies found.

Please to add Angular 10 support.

Error found in the ng2-pdfjs-viewer version 5.0.7.

3reactions
NicoPandurocommented, Nov 25, 2020

@codehippie1 Any chance we can get the latest version published, so we can upgrade to A10 without hacks?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular versioning and releases
We update peer dependencies in minor versions by expanding the supported versions, ... For example, to update from version 10 to version 12:....
Read more >
Angular - endoflife.date
Release Released Active Support 15 1 month and 2 weeks ago. (16 Nov 2022) Ends in 4 months and 2 weeks. (18 Ma... 14 (...
Read more >
Angular versioning and releases
We update peer dependencies in minor versions by expanding the supported versions, but we do not require projects to update these dependencies. Patch...
Read more >
Angular (web framework) - Wikipedia
Angular is a TypeScript-based, free and open-source web application framework led by the ... 14 September 2016; 21 December 2016; 23 March 2017;...
Read more >
What's new in Angular 10? - Clarion Technologies
In contrast to the previous version which supported TypeScript 3.6, 3.7, and 3.8. TypeScript is the language that builds on JavaScript by adding...
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