vite-plugin-web-extension
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."
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