crxjs / chrome-extension-tools

Bundling Chrome Extensions can be pretty complex. It doesn't have to be.
https://crxjs.dev/vite-plugin
2.97k stars 191 forks source link

When the ”sandbox“ page opens, a circular request error occurs (ERR_BLOCKED_BY_CLIENT) #569

Open lkangle opened 2 years ago

lkangle commented 2 years ago

Build tool

Vite

Where do you see the problem?

Describe the bug

image

When running in dev mode, an error occurs when loading the extension to access the chrome-extension://xxxxx/test.html page. when running in prod mode is ok.

Reproduction

https://stackblitz.com/edit/vitejs-vite-ver5fh?file=manifest.js

Logs

no

System Info

System:
    OS: macOS 12.1
    CPU: (8) arm64 Apple M1
    Memory: 129.31 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 14.17.6 - ~/.nvm/versions/node/v14.17.6/bin/node
    Yarn: 1.22.17 - ~/.nvm/versions/node/v14.17.6/bin/yarn
    npm: 6.14.15 - ~/.nvm/versions/node/v14.17.6/bin/npm
  Browsers:
    Chrome: 107.0.5304.87
    Safari: 15.2

Severity

annoyance

jacksteamdev commented 2 years ago

Thanks for the heads up! IIRC, this is a limitation of Chrome. See https://github.com/crxjs/chrome-extension-tools/discussions/280#discussioncomment-2562533

The error message is different than in the past. I'll set aside some time to investigate more.