vite-plugin-web-extension icon indicating copy to clipboard operation
vite-plugin-web-extension copied to clipboard

sometimes the lib will show "Uncaught (in promise) Error: This script should only be loaded in a browser extension."

Open devhandler opened this issue 1 year ago • 0 comments

no exact way to reproduce it, but here is the error

webextension-polyfill.js?v=84609159:24 Uncaught (in promise) Error: This script should only be loaded in a browser extension. at webextension-polyfill.js?v=84609159:24:15 at webextension-polyfill.js?v=84609159:12:9 at node_modules/webextension-polyfill/dist/browser-polyfill.js (webextension-polyfill.js?v=84609159:20:7) at __require (chunk-DFKQJ226.js?v=84609159:8:50) at webextension-polyfill.js?v=84609159:999:16 (anonymous) @ webextension-polyfill.js?v=84609159:24 (anonymous) @ webextension-polyfill.js?v=84609159:12 node_modules/webextension-polyfill/dist/browser-polyfill.js @ webextension-polyfill.js?v=84609159:20 __require @ chunk-DFKQJ226.js?v=84609159:8 (anonymous) @ webextension-polyfill.js?v=84609159:999 Show 5 more frames Show less

devhandler avatar Dec 04 '23 18:12 devhandler