cyntler / cyntler/react-doc-viewer
PDF: error when packaged using Electron
- Dominant language
- TypeScript
- Stars
- 481
- Forks
- 147
- PR merge metrics
- No merged PRs in 30d
Description
I am attempting to use react-doc-viewer with an Electron application. When trying to view a pdf document, it fails and I see this warning in the console:
> tiny-warning.esm.js:11 Warning: Error: Setting up fake worker failed: "Cannot load script at: file://unpkg.com/pdfjs-dist@3.11.174/build/pdf.worker.min.js".
Is there a way to not rely on external url for the pdf worker? There is no way my app will download random some js from an external url (and it does even require an internet connection).
I saw this [issue](https://github.com/cyntler/react-doc-viewer/issues/180) but it has been closed without much explanation.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.