You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I followed instructions in documentation written for my React-PDF version
I have checked if this bug is not already reported
I have checked if an issue is not listed in Known issues
If I have a problem with PDF rendering, I checked if my PDF renders properly in PDF.js demo
Description
The bug I'm encountered now is one that appeared after the ESM module compat and the latest release.
- error Error [TypeError]: Cannot set properties of undefined (setting 'workerSrc')at file:///home/stauersbol/Projects/dws-drawing-viewer/node_modules/react-pdf/dist/esm/index.js:11:37at ModuleJob.run (node:internal/modules/esm/module_job:194:25) {digest: undefined}
Steps to reproduce
Setup a basic Next project and implement the recommended way of setting up react-pdf (In this case I'm using the unpkg.com for this, but I have same issue using the new URL way)
Run next dev
See the error when you load the site in your console
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
Browser (if applicable): Opera
React-PDF version: 7.3.2
React version: 18.2.0
Webpack version (if applicable):
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: