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.

Module '"../../../../@types/pdfjs-dist"' has no exported member 'PDFPromise'

See original GitHub issue
Bug Report or Feature Request
- [ ] Regression
- [x] Bug report
- [ ] Feature request
- [ ] Documentation issue or request

Hello there i got the next error with "ng2-pdf-viewer": "^6.4.0" version. Thx

Error: node_modules/ng2-pdf-viewer/src/app/pdf-viewer/pdf-viewer.module.d.ts:7:100 - error TS2305: Module '"../../../../@types/pdfjs-dist"' has no exported member 'PDFPromise'.

export { PDFJSStatic, PDFDocumentProxy, PDFViewerParams, PDFPageProxy, PDFSource, PDFProgressData, PDFPromise } from 'pdfjs-dist';

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:8
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

14reactions
VadimDezcommented, Mar 16, 2021

Fixed in version 6.4.1

10reactions
srizzoncommented, Mar 15, 2021

Try use these versions:

“ng2-pdf-viewer”: “6.3.2”, “@types/pdfjs-dist”: “2.1.7”, “pdfjs-dist”: “2.5.207”

Read more comments on GitHub >

github_iconTop Results From Across the Web

Importing PDFJS breaks TS application - Stack Overflow
ts(27,10): error TS2305: Module '"pdfjs-dist"' has no exported member 'PDFJS'. I'm at a loss because it appears that the pdfjs-dist typing ...
Read more >
A brand new website interface for an even better experience!
Module '"../../../../@types/pdfjs-dist"' has no exported member 'PDFPromise'
Read more >
Getting the following error: Module '"pdfjs-dist"' has ... - Medium
Module '"pdfjs-dist"' has no exported member 'PDFAnnotationData'. ... Follow. Love podcasts or audiobooks? Learn on the go with our new app.
Read more >
Source - GitHub
executeCommand` is deprecated, you should now use `eventBus` to do search. ... Module '"@types/pdfjs-dist"' has no exported member 'PDFPromise' ...
Read more >
pdfjs-dist - npm
js. PDF.js is a Portable Document Format (PDF) library that is built with HTML5. Our goal is to create a general-purpose, ...
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