react-pdf
react-pdf copied to clipboard
Getting serviceWorker not ready error
Before you start - checklist
- [X] I followed instructions in documentation written for my React-PDF version
- [X] I have checked if this bug is not already reported
- [X] I have checked if an issue is not listed in Known issues
- [X] If I have a problem with PDF rendering, I checked if my PDF renders properly in PDF.js demo
Description
Hi. I am seeing this error in console whenever i am trying to run sample project or use packages.
downloader.js:1 Uncaught (in promise) NotSupportedError: Failed to read the 'ready' property from 'ServiceWorkerContainer': 'ready' is only supported in pages.
Has anyone faced this or is there any solution for this?
Steps to reproduce
On running the project, getting below error in console:
Expected behavior
Should work fine.
Actual behavior
Getting error due to which pdf is not loading.
Additional information
No response
Environment
- Browser (if applicable):
- React-PDF version:
- React version:
- Bundler name and version (if applicable):