electron-vite / vite-plugin-electron

:electron: Electron⚡️Vite core repo
https://github.com/electron-vite
MIT License
658 stars 55 forks source link

[Bug] DevTools Extensions are not showing #250

Closed kuoruan closed 2 days ago

kuoruan commented 1 week ago

Here is a reproduce repo: https://github.com/kuoruan/electron-extension-bug

When using with vite-plugin-electron, The Vuejs devtools is not showing in electron devtools.

pnpm run dev

image

Then let's start without vite-plugin-electron:

  1. build the project.
pnpm run build
  1. disable plugin: https://github.com/kuoruan/electron-extension-bug/blob/82041beb5dfeada3d5e732429e828e43b7e98ef2/vite.config.ts#L6

  2. start vite and vue

pnpm run dev

Then open new terminal to run pnpm run start

image

kuoruan commented 1 week ago

Finally find that it caused by the --no-sandbox flag added by #57