I see this error when I try to add:- "content_scripts": [ { "js": ["src/main.jsx"], "matches": ["google.com/*"] } ] Any solutions for this?
This is a known issue with the new Vite 3.0, but you can install the latest versions of Vite 2 and plugins and things should work as expected:
npm i -D vite@^2 @vitejs/plugin-react@^1
I'm updating the articles so this doesn't continue to trip people up.
Hi Jack, This resolved the issue for content script hot reloading but the pop up always shows Waiting for service worker..
and this is the Error shown in Brave extension page
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I see this error

when I try to add:-
"content_scripts": [
{
"js": ["src/main.jsx"],
"matches": ["google.com/*"]
}
]
Any solutions for this?
This is a known issue with the new Vite 3.0, but you can install the latest versions of Vite 2 and plugins and things should work as expected:
I'm updating the articles so this doesn't continue to trip people up.
Hi Jack, This resolved the issue for content script hot reloading but the pop up always shows Waiting for service worker..
and this is the Error shown in Brave extension page