No "GlobalWorkerOptions.workerSrc" specified.
Aperta
- Lingua principale
- TypeScript
- Stelle
- 395
- Fork
- 39
- Merge medio
- 7h 7m
- PR unite (30g)
- 12
Descrizione
Hi thanks for this cool project!
I was just trying to use this inside a React component in Next.js but I got `No "GlobalWorkerOptions.workerSrc" specified.` as an error.
This seems like a common issue: https://github.com/mozilla/pdf.js/issues/10478
Using:
```
import * as pdfjs from 'pdfjs-dist'
pdfjs.GlobalWorkerOptions.workerSrc = new URL(
'pdfjs-dist/build/pdf.worker.min.mjs',
import.meta.url
).toString()
```
Gets rid of the error but now it's stuck in loading state. Any advice?
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.