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
It's possible I missed this in the documentation somewhere, but I just tried to build my firefox extension for manifest v3 and realized that the built extension was still converting browser.action to browser.browserAction. Once I switched to @types/chrome, the built background.js no longer used browserAction, solving my issue.
If nothing else, even if this gets insta-closed, hopefully this will make it more searchable for future users.
Hmm, looking at the files you provided, both have action in the manifest, not browser_action, so the manifest looks fine.
You said there was a problem with your background... just installing some type-only packages shouldn't have any effect on the build output. Did you also switch to extesionApi: 'chrome'?
Describe the bug
It's possible I missed this in the documentation somewhere, but I just tried to build my firefox extension for manifest v3 and realized that the built extension was still converting
browser.action
tobrowser.browserAction
. Once I switched to@types/chrome
, the builtbackground.js
no longer usedbrowserAction
, solving my issue.If nothing else, even if this gets insta-closed, hopefully this will make it more searchable for future users.
Reproduction
browserAction-issue.zip (contains builds from both versions)
Steps to reproduce
Run
wxt build -b firefox
while using@types/webextension-polyfill
.System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: