create-chrome-ext icon indicating copy to clipboard operation
create-chrome-ext copied to clipboard

Service worker registration failed. Status code: 3

Open kpripper opened this issue 4 months ago • 6 comments

I just installed the code and haven’t changed anything yet, just ran it.

PS D:\Code\Chrome\ext-kaz-ra> npm run dev

> [email protected] dev
> vite

Port 5173 is in use, trying another one...

  VITE v4.5.5  ready in 664 ms

  ➜  Local:   http://localhost:5174/
  ➜  Network: use --host to expose
  ➜  press h to show help
The emitted file "img/logo-34.png" overwrites a previously emitted file of the same name.
The emitted file "img/logo-48.png" overwrites a previously emitted file of the same name.
The emitted file "img/logo-16.png" overwrites a previously emitted file of the same name.
The emitted file "img/logo-128.png" overwrites a previously emitted file of the same name.

When I click on the extension icon, I see:

Vite Dev Mode Cannot connect to the Vite Dev Server on http://localhost:5174/

Double-check that Vite is working and reload the extension.

This page will close when the extension reloads.

On the extension management page in the errors section, I see the following message:

Service worker registration failed. Status code: 3

In the code, "service-worker-loader.js" is highlighted in yellow.

"background": {
  "service_worker": "service-worker-loader.js",
  "type": "module"
}

kpripper avatar Oct 22 '24 16:10 kpripper