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
What is the expected behavior?
Example loads pdfjs.worker as an actual web worker
What went wrong?
A fake worker was used
Currently, examples/create-react-app/package.json depends on pdfjs-dist version 2.2.228, but I upgraded it to 2.4.456 and observed the same behavior.
A workaround is to serve the js worker statically in the public/, but it would be nice if the example included in the pdf.js repository were working out of the box.
The text was updated successfully, but these errors were encountered:
Currently, examples/create-react-app/package.json depends on pdfjs-dist version 2.2.228,
Having the version number hard-coded really isn't good :-(
The general problem with the create-react-app example is that none of the few regular PDF.js contributors know much (or even anything) about React.
Consequently it's very difficult for us to maintain that example, not to mention provide support for it, and I do wonder if having it ends up does more harm than good!? @timvandermeij Should we perhaps consider removing that example?
Configuration:
Steps to reproduce the problem:
cd examples/create-react-app
npm install && npm start
Warning: Setting up fake worker.
What is the expected behavior?
Example loads pdfjs.worker as an actual web worker
What went wrong?
A fake worker was used
Currently,
examples/create-react-app/package.json
depends on pdfjs-dist version 2.2.228, but I upgraded it to 2.4.456 and observed the same behavior.A workaround is to serve the js worker statically in the
public/
, but it would be nice if the example included in the pdf.js repository were working out of the box.The text was updated successfully, but these errors were encountered: