Coder Social home page Coder Social logo

Comments (8)

Adhikaripr avatar Adhikaripr commented on July 3, 2024

any update on this, I got the same issue after updating to latest version for security update

from ng2-pdf-viewer.

evo-ksalter avatar evo-ksalter commented on July 3, 2024

Same here...need to update this package but can't because of this error.

from ng2-pdf-viewer.

mibadim avatar mibadim commented on July 3, 2024

I have the exact same problem. Any help appreciated.

from ng2-pdf-viewer.

SurekhaKarthik avatar SurekhaKarthik commented on July 3, 2024

using below libraries for viewing pdf in my application, but throwing below error.
"ng2-pdf-viewer": "^10.2.1",
"pdfjs-dist": "^4.3.136"

------------------------------------Error------------------------------------------------------------------------------------------------
Error: node_modules/ng2-pdf-viewer/node_modules/pdfjs-dist/types/web/text_layer_builder.d.ts:41:32 - error TS2304: Cannot find name 'WeakKey'.

text_layer_builder.d.ts file : line number 41 :textDivProperties: WeakMap<WeakKey, any>;


** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **

from ng2-pdf-viewer.

mgustran avatar mgustran commented on July 3, 2024

Same problem here, in my case, using angular 16.2.12 :

  • error appears in every version since 10.1.0
  • used many ng2-pdf-viewer and pdfjs-dist version combinations does not seem to work either

The only solution that i have found to use it with angular 16 is downgrade to 10.0.0 and remove pdfjs-dist from package.json

from ng2-pdf-viewer.

JRobinsIken avatar JRobinsIken commented on July 3, 2024

On an angular 16 project, try adding;

"skipLibCheck": true,

to your tsconfig.json file.

This has fixed the issue for me on my angular 16 project.

On my Angular 17 project I found this was not necessary.

I noticed in this commit 15cba0d that the same was added to this project.

from ng2-pdf-viewer.

Nicolas-Aguila avatar Nicolas-Aguila commented on July 3, 2024

Si bien funciona utilizar

"skipLibCheck": true

no me parece la solucion correcta.

from ng2-pdf-viewer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.