Comments (6)
Thank you for your contribution. We will check and reply to you as soon as possible.
from chrome-extension-boilerplate-react-vite.
Could you please provide a more detailed reproduction of the issue? I hope i can help you.
I tried with the following process but couldn't reproduce the problem.
yarn install webextension-polyfill
import polyfill from "webextension-polyfill";
inbackground/index.ts
- install extension
- run (it's work)
import reloadOnUpdate from "virtual:reload-on-update-in-background-script";
import polyfill from "webextension-polyfill";
reloadOnUpdate("pages/background");
console.log("background loaded");
console.log("polyfill", polyfill);
from chrome-extension-boilerplate-react-vite.
I also face this issue on including this in the content Script. Or for including any external package in the content script for that matter
I saw your comment regarding how that might not be possible, but is there any workaround? I have definitely seen extentions using the webextension-polyfill in the content scripts and would really appreaciate any help in using that in this template.
from chrome-extension-boilerplate-react-vite.
The usage of webextension-polyfill seems to be detailed in the repo below.
It's hard to pinpoint exactly what the issue is π’
https://github.com/mozilla/webextension-polyfill
from chrome-extension-boilerplate-react-vite.
Solved this by adding type: 'module'
from chrome-extension-boilerplate-react-vite.
This issue has been closed for a long time with no additional information provided. If anyone encounters the same issue, you can re-open it with your running environment and error logs attached.
from chrome-extension-boilerplate-react-vite.
Related Issues (20)
- Theme Storage toggle failed in Content script example HOT 2
- Make husky use pnpm HOT 1
- use of experimental node features causes warnings HOT 1
- Error when importing tailwind css file into content script HOT 11
- How to sync web app authentication with chrome extension HOT 8
- Styles do not get applied using Styled Components library HOT 7
- vite preloadhelper shouldn't be using import statement HOT 9
- Add Mantien UI example integration HOT 4
- Cannot load the extension due to Content Script which is generated in wrong path HOT 1
- enabling source maps results in warning from inline-vite-preload-script.ts HOT 4
- Uncaught SyntaxError: Cannot use 'import.meta' outside a module HOT 1
- Files nested inside content/content-script doesn't auto reload on browser HOT 4
- Chakra styles are not loaded on injected content script HOT 2
- rollup packaging speed optimization HOT 1
- [Question] κ° νμ΄μ§μ μν μ λν΄ κΆκΈν©λλ€! Wondering about the role of each page! HOT 5
- Boilerplate Redesign HOT 2
- HMR does not work on Content Scripts Change HOT 4
- Is there any way to use React Developer Tools for debugging my extension? HOT 5
- Why the document default language is Korean? HOT 2
- Chakra UI Components Not Rendering HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chrome-extension-boilerplate-react-vite.