Closed CortexPE closed 10 months ago
For now, you can not use dev
build with Firefox and you should only run firefox build after the production builds. This is a missing feature of @crxjs/vite-plugin
. As soon as the https://github.com/crxjs/chrome-extension-tools/pull/790 is npm published (merged but not published), I will add support for Firefox MV3 production
build support. related https://github.com/sinanbekar/browser-extension-react-typescript-starter/issues/61.
I am closing this but feel free to open a issue for other problems.
Error messages:
Popup:![image](https://github.com/sinanbekar/browser-extension-react-typescript-starter/assets/17762324/88ee8fc9-2e34-4e46-8ae0-a5d4e1b9c2e0)
Steps to reproduce:
npm run dev
to builddist
and startvite
npm run firefox-mv2-build
to builddist-firefox-v2
from HMR-enabled chromedist
$PROJECT_DIR/dist-firefox-v2/manifest.json
viaabout:debugging#/runtime/this-firefox
>Load Temporary Add-on...
about:debugging#/runtime/this-firefox
>[Dev] Browser Extension TypeScript & React Starter
>Inspect