[Bug]: TypeError Promise.withResolvers is not a function #18821
-
Attach (recommended) or Link to PDF fileWeb browser and its versionElectron JS Application Operating system and its versionWindows 11 PDF.js version4.6.82 Is the bug present in the latest PDF.js version?Yes Is a browser extensionNo Steps to reproduce the problem1.Error occurs when opening PDF in electron app What is the expected behavior?Open PDF in read mode What went wrong?pdf.mjs:11172 Uncaught (in promise) TypeError: Promise.withResolvers is not a function Link to a viewerNo response Additional contextNo response |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 3 replies
-
@techpranav Were you able to figure it out? |
Beta Was this translation helpful? Give feedback.
-
Has there been any progress on this issue? |
Beta Was this translation helpful? Give feedback.
-
Please see https://github.com/mozilla/pdf.js/wiki/Frequently-Asked-Questions#faq-support, which will tell you two things:
|
Beta Was this translation helpful? Give feedback.
-
Oh okay, I ended up using react-pdf-viewer and purchased the license there if anyone's using this for React + Electron and it worked there (interestingly, it's built on react-pdf which uses the worker from pdf.js 🤔) |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Please see https://github.com/mozilla/pdf.js/wiki/Frequently-Asked-Questions#faq-support, which will tell you two things:
legacy
-build of the PDF.js library.