pusher / docs

The all new Pusher docs, powered by @11ty and @vercel
https://pusher.com/docs
8 stars 15 forks source link

Pusher Beams Docs | Web SDK Integrationpage #318

Closed ThilinaV98 closed 7 months ago

ThilinaV98 commented 8 months ago

Hello there, I spotted an issue on https://pusher.com/docs/beams/getting-started/web/sdk-integration/

Getting 2 errors mention in below.

  1. The script has an unsupported MIME type ('text/html').
  2. 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 8 months ago

Can you share how you are registering the service worker (including the code)?