Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React Developer Tools add failed #207

Open
tonyada opened this issue Mar 15, 2024 · 11 comments
Open

React Developer Tools add failed #207

tonyada opened this issue Mar 15, 2024 · 11 comments
Labels
help wanted Extra attention is needed

Comments

@tonyada
Copy link

tonyada commented Mar 15, 2024

Describe the problem you confuse

any help?

@tonyada tonyada added the help wanted Extra attention is needed label Mar 15, 2024
@RSS1102
Copy link
Member

RSS1102 commented Mar 17, 2024

Are you using the React Google Chrome plugin within Electron?

@Stanzilla
Copy link

Stanzilla commented Jun 2, 2024

Are you using the React Google Chrome plugin within Electron?

Yeah that's the only way atm. I have the same issue, trying to install react and redux devtools. It works in production/packaged app but not in dev mode. Using https://github.com/MarshallOfSound/electron-devtools-installer

@caoxiemeihao any ideas?

@Stanzilla
Copy link

@caoxiemeihao any chance you could take a look at this?

@Imaginativeone
Copy link

Imaginativeone commented Jul 1, 2024

Is there a way to offer a bounty for resolving this issue? I'll start the bidding with $100.

@caoxiemeihao
Copy link
Member

@caoxiemeihao any chance you could take a look at this?

@Stanzilla Sorry, I just saw this message. I've been very busy at work recently. I'll take some time to look at this issue.

@Stanzilla
Copy link

@caoxiemeihao any chance you could take a look at this?

@Stanzilla Sorry, I just saw this message. I've been very busy at work recently. I'll take some time to look at this issue.

Awesome, thank you! Glad that you found a new job as well, I remember you were looking!

@caoxiemeihao
Copy link
Member

@Stanzilla I noticed your comments about this issue elsewhere. Maybe we need to wait for an official response from Electron.

@Stanzilla
Copy link

@Stanzilla I noticed your comments about this issue elsewhere. Maybe we need to wait for an official response from Electron.

I'm not sure since it does work in build mode my guess is that vite just does not know where to look for the files in dev mode.

@Imaginativeone
Copy link

@Stanzilla I noticed your comments about this issue elsewhere. Maybe we need to wait for an official response from Electron.

Is there a way to expedite an official response from Electron?

@silyont
Copy link

silyont commented Aug 27, 2024

To everyone got struggled:

I found a workaround to add back react devtools to electron. The root cause is the default startup argument --no-sandbox in electron-vite-plugin. Therefore I tried to modify vite.config.mts like this:

electron([
  {
    entry: 'electron/main.ts',
    onstart: (option) => option.startup(['.']),
    // ... other configs
  },
  // ... other configs
])

@Stanzilla
Copy link

To everyone got struggled:

I found a workaround to add back react devtools to electron. The root cause is the default startup argument --no-sandbox in electron-vite-plugin. Therefore I tried to modify vite.config.mts like this:

electron([
  {
    entry: 'electron/main.ts',
    onstart: (option) => option.startup(['.']),
    // ... other configs
  },
  // ... other configs
])

Oh my god, it works, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

6 participants