Closed stauersbol closed 1 year ago
I just love dual ESM/CJS packages 🫠
Try v7.3.3, works for me!
I will give it a try tomorrow when I get it at work! Thank you for fixing it so fast @wojtekmaj!
Hey @wojtekmaj It is working as expected now, thank you for the quick fix!
Before you start - checklist
Description
The bug I'm encountered now is one that appeared after the ESM module compat and the latest release.
Steps to reproduce
react-pdf
(In this case I'm using theunpkg.com
for this, but I have same issue using the new URL way)Expected behavior
Site loads properly and the PDF loads in.
Actual behavior
Next shows the error page with the error message.
Additional information
This image should show the issue I'm facing.
Same error in Browser Console.
Extra info: I'm using Next to run this. This is for a niche use case, due to the API.
How I setup workerSrc reference to the part where I mention unpkg:
pdfjs.GlobalWorkerOptions.workerSrc =
//unpkg.com/pdfjs-dist@${pdfjs.version}/build/pdf.worker.min.js``Environment