react-pdf icon indicating copy to clipboard operation
react-pdf copied to clipboard

Getting serviceWorker not ready error

Open RajatBhardwaj007 opened this issue 1 year ago • 0 comments

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.

image

Has anyone faced this or is there any solution for this?

Steps to reproduce

On running the project, getting below error in console:

image

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):

RajatBhardwaj007 avatar Sep 09 '24 09:09 RajatBhardwaj007