You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been migrating from from webextension-polyfill-ts
With the @types/webextension-polyfill, I get this error:
in ./node_modules/webextension-polyfill/dist/browser-polyfill.js
Module parse failed: Unexpected token (25:25)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| "use strict";
|
> if (!globalThis.chrome?.runtime?.id) {
| throw new Error("This script should only be loaded in a browser extension.");
| }
@ ./src/main.ts 6:0-44 16:23-30
@ multi ./src/main.ts
Do I miss something?
Thanks for your help
The text was updated successfully, but these errors were encountered:
Hello,
I've been migrating from from webextension-polyfill-ts
With the @types/webextension-polyfill, I get this error:
Do I miss something?
Thanks for your help
The text was updated successfully, but these errors were encountered: