Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Setting up fake worker failed: "No "GlobalWorkerOptions.workerSrc" specified."." #64

Closed
marcelpanse opened this issue Jul 13, 2023 · 1 comment · Fixed by #65
Closed

Comments

@marcelpanse
Copy link

When running pdf2md from Node I get this error:
Error: Setting up fake worker failed: \"No \"GlobalWorkerOptions.workerSrc\" specified.\"."

  • OSX Ventura (Apple silicon)
  • Node 18.15.0

Adding this line fixes the problem for me:
pdfjs.GlobalWorkerOptions.workerSrc = pdfjs-dist/legacy/build/pdf.worker;
in lib/util/pdf.js fixes the problem for me.

I'm not familiar with pdf.js so I have no idea if this is the correct approach/solution.

@LoneRifle
Copy link

Related to mozilla/pdf.js#10478

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants