aklinker1 / vite-plugin-web-extension

Vite plugin for developing Chrome/Web Extensions
https://vite-plugin-web-extension.aklinker1.io/
MIT License
653 stars 58 forks source link

In the default starter project modifying `src/popup.ts` closes the browser and never reopens it #172

Closed antitoxic closed 11 months ago

antitoxic commented 11 months ago

Summary

I created a empty starter project (vanilla ts) via pnpm create vite-plugin-web-extension and I modified popup.ts but the browser simply closed and never re-opened.

Reproduction

Environment

  System:
    OS: macOS 13.0
    CPU: (10) arm64 Apple M2 Pro
    Memory: 53.23 MB / 16.00 GB
    Shell: 3.6.4 - /opt/homebrew/bin/fish
  Binaries:
    Node: 18.15.0 - ~/pnpm/node
    npm: 9.5.0 - ~/pnpm/npm
    pnpm: 8.12.1 - ~/pnpm/pnpm
  Browsers:
    Chrome: 120.0.6099.129
    Safari: 16.1
  npmPackages:
    vite: ^5.0.0 => 5.0.10
    vite-plugin-web-extension: ^4.0.0 => 4.1.0
aklinker1 commented 11 months ago

Fixed in v4.1.1. Thanks for the report, let me know if it doesn't work for you 👍