Skip to content

Fast Refresh: Improve dev experience when DevTools hook is disabled #20117

Closed
@Sinsstranger

Description

@Sinsstranger

The crash is likely being caused by some third party code (possibly a browser extension) injecting a partial DevTools hook into the page. (See below comments for more information.)

We can't prevent this but Fast Refresh could more gracefully handle this case by checking to see if window. __REACT_DEVTOOLS_GLOBAL_HOOK__.isDisabled is true (like we do here). Rather than crash, Fast Refresh could print a warning to the console in DEV mode saying that it won't run because of the disabled hook override.


Original report: Crash with "hook.renderers is undefined"


I have a bit problem, when i just do yarn create react-app name --template redux, and start it to learn how to develop - I saw next:
On localhost(it's vmware virtualhost) I have no problem, but on host machine i see Uncaught TypeError: hook.renderers is undefined in js console, and empty body
2020-10-28_17-49-42
How can I handle it? And what this error means in general?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions