Open fduayer opened 1 year ago
Same issue
Could not reproduce - works just fine. What versions of vite, @crxjs/vite-plugin are you using?
Working code (branch service-worker) https://github.com/Toumash/react-extension-vite-template/tree/service-worker-sample
No errors
have the same error, but it works anyway
I recently encountered this issue where Chrome automatically redirects http://localhost:5173 to https://localhost:5173. This error occurred because of my other Vite projects using the https protocol.
To resolve this, you just need to go to chrome://net-internals/#hsts
and clear the "Delete domain security policies" option. Enter "localhost" in the "Domain" field and click "delete".
Build tool
Vite
Where do you see the problem?
Describe the bug
I get the message described in the title right after loading the 'dist' folder into chrome. The error message appears in the extension's card 'Error' button.
If I comment out the two imports from
service-worker-loader.js
, the error disappears:To be clear, I get this error before doing anything inside the project, just right after
npm init vite@latest
followed bynpm i @crxjs/vite-plugin@beta -D
. The same problem occurs when using vite 2.Has anybody else experienced this issue?
Reproduction
No repo.
Logs
No response
System Info
Severity
annoyance