antfu-collective / vitesse-webext

⚡️ WebExtension Vite Starter Template
MIT License
2.92k stars 225 forks source link

Popup & Option doesn't work when after build. #169

Open iNuoers opened 8 months ago

iNuoers commented 8 months ago

Describe the bug

Popup & Option doesn't work when after build.

  1. pnpm build
  2. add extend
  3. click extend icon
  4. popup page is empty

Reproduction

Popup & Option doesn't work when after build

System Info

Win11, Edge

Used Package Manager

pnpm

Validations

tmkx commented 8 months ago

what's the error message?

michaelhue commented 8 months ago

I have the same issue in Firefox, the popup just shows Vite server did not start.

Bildschirmfoto 2024-04-01 um 12 24 03

I'm using pnpm@8.15.5.

tmkx commented 8 months ago

Firefox doesn't support HMR in the dev mode of MV3. You need to run EXTENSION=firefox pnpm build to create a Firefox extension for production.

https://bugzilla.mozilla.org/show_bug.cgi?id=1864284