Repository navigation
[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 |
Replies: 5 comments 5 replies
|
Has there been any progress on this issue? |
|
Please see https://github.com/mozilla/pdf.js/wiki/Frequently-Asked-Questions#faq-support, which will tell you two things:
|
|
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 🤔) |



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.