Pusher Beams Docs | Web SDK Integrationpage
Closed this issue · 1 comments
ThilinaV98 commented
Hello there, I spotted an issue on https://pusher.com/docs/beams/getting-started/web/sdk-integration/
Getting 2 errors mention in below.
- The script has an unsupported MIME type ('text/html').
- Uncaught (in promise) DOMException: Failed to register a ServiceWorker for scope ('http://localhost:3000/') with script ('http://localhost:3000/service-worker.js?pusherBeamsWebSDKVersion=1.1.0'): The script has an unsupported MIME type ('text/html').
Try to fix it but didn't found a solution for it.
benw-pusher commented
Can you share how you are registering the service worker (including the code)?