Skip to content

React DevTools should bump the Electron version to 11.0.1 for darwin-arm64 builds #20454

Closed
@mglukhovsky

Description

@mglukhovsky

Environment:

  • macOS 11.0.1 Big Sur, on an Apple Silicon (M1) chip
  • React 17.0.1
  • React DevTools 4.10.1, running in standalone mode via Electron 11.1.0 (darwin-arm64 build)
  • New project using create-react-app . with the useScript hook to add the <script> tag required by React DevTools.

Steps to reproduce

  1. Add React DevTools to a project with npm install --save react-devtools (or yarn).
  2. react-devtools expects Electron 9.x.x; however builds for darwin-arm64 are only available for 11.1.0. Installation fails with:
npm ERR! code 1
npm ERR! path /Users/michael/git/components-blank/node_modules/electron
npm ERR! command failed
npm ERR! command sh -c node install.js
 HTTPError: Response code 404 (Not Found) for https://github.com/electron/electron/releases/download/v9.4.0/electron-v9.4.0-darwin-arm64.zip
 ...

Link to code example: mglukhovsky/react-devtools-components-blank

The current behavior

Workarounds are documented here; however a 11.1.0 build is required.

The expected behavior

Bump the version in package.json so this works out of the box.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions