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 dev tools unavailable #2547

Closed
5 tasks done
platinumitpl opened this issue Aug 6, 2020 · 8 comments
Closed
5 tasks done

React dev tools unavailable #2547

platinumitpl opened this issue Aug 6, 2020 · 8 comments

Comments

@platinumitpl
Copy link

Prerequisites

Expected Behavior

The React tab should be available under the Chrome Developer Tool window.

Current Behavior

React tab is not available. I can see Redux dev tools only.

Steps to Reproduce

I have a standard configuration:

const installExtensions = async () => {
  const installer = require('electron-devtools-installer');
  const forceDownload = !!process.env.UPGRADE_EXTENSIONS;
  const extensions = ['REACT_DEVELOPER_TOOLS', 'REDUX_DEVTOOLS'];

  return Promise.all(
    extensions.map((name) => installer.default(installer[name], forceDownload))
  ).catch(console.log);
};

Possible Solution (Not obligatory)

Context

I would like to investigate a component state.

Your Environment

  • Node version : v12.14.0
  • electron-react-boilerplate version or branch : 1.3.0
  • Operating System and version : macOS Catalina 10.15.5 (19F101)
  • Link to your project :
@RafaelFontes
Copy link

In production release it is using the preload script parameter, therefore disabling some features.

If you need to make it work on production for now, don't use preload option on webPreferences.

@platinumitpl
Copy link
Author

The issue occurs in the dev env. yarn dev.
Perhaps I shouldn't have checked the last checkbox in the issue description.

@amilajack
Copy link
Member

This issue isn't reproducible with a fresh clone. Please provide more details

@platinumitpl
Copy link
Author

I get the same results on a fresh clone - missing React dev tools.
What kind of details may help to track the bug?
I already posted software versions, so I don't see what else may help.

image

@amilajack
Copy link
Member

Try running UPGRADE_EXTENSIONS=1 yarn run dev

@platinumitpl
Copy link
Author

platinumitpl commented Aug 11, 2020

I read the docs and tried that already, didn't help.

@shutterkurt
Copy link

I have the same issue on Windows 10 with a clean clone - unzip was throwing an exception. looked into it and appears that the extension .crx file was empty due to a change on Google's end. same issue as described by MarshallOfSound/electron-devtools-installer#140. This was fixed in 3.1.1 - I bumped up the version and 'seems' like it fixed the issue (didn't run any tests other than it doesn't throw the exception anymore and extension tabs show up now)

@jooohhn
Copy link
Member

jooohhn commented Aug 15, 2020

Thanks @shutterkurt 🥳

@jooohhn jooohhn closed this as completed Aug 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants