Skip to content
This repository was archived by the owner on Jun 26, 2020. It is now read-only.
This repository was archived by the owner on Jun 26, 2020. It is now read-only.

react-devtools 3.5.1 breaks standalone mode for Chrome Extensions #1269

@jamaljsr

Description

@jamaljsr

I upgraded to v3.5.1 today and now I cannot inspect my Browser Extension through Chrome as I did previously. See usage-with-react-dom

The console displays the error:

Uncaught ReferenceError: ReactDevToolsBackend is not defined

I've found what appears to be the problem. ReactDevToolsBackend is hard coded in standalone.js. The global exported by webpack was changed to backend in the recent commits v3.5.0 28d36a22 and v3.5.1 bcf6b1aa.

To fix this locally, I updated standalone.js replacing

res.end(backendFile + '\n;ReactDevToolsBackend.connectToDevTools();');

with

res.end(backendFile + '\n;backend.connectToDevTools();');

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions