question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CRA: Fast Refresh breaks embedded DevTools backend

See original GitHub issue

`TypeError: undefined is not a function (near ‘…e.sub…’) (anonymous function) src/backend/index.js:26 23 | // DevTools didn’t get injected into this page (maybe b’c of the contentType). 24 | return () => {}; 25 | }

26 | const subs = [ | ^ 27 | hook.sub( 28 | ‘renderer-attached’, 29 | ({ View compiled (anonymous function) src/backend.js:179 176 | hook.emit(‘shutdown’); 177 | }); 178 | 179 | initBackend(hook, agent, window); | ^ 180 | 181 | // Setup React Native style editor if the environment supports it. 182 | if (resolveRNStyle != null || hook.resolveRNStyle != null) {` React version:

Steps To Reproduce

  1. create-react-app
  2. yarn add react-devtools
  3. in index.js add import ‘react-devtools’ on first line
  4. start react-devtools
  5. start create-react-app devserver
  6. go to localhost:3000
  7. crash

Link to code example:

add react-devtools on first line of vanilla ‘create-react-app’

The current behavior

devtools

The expected behavior

Debug-Session

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:20 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
tjx666commented, Nov 22, 2021

same here, developing chrome extension using standalone react-devtools.

image

2reactions
mecirmartincommented, Apr 27, 2021

@feimosi updated the comment

Read more comments on GitHub >

github_iconTop Results From Across the Web

React dev tools - Deactivate "break on warnings"
Go to Chrome Devtools → in the Chrome console, go to Component → Click on Settings → unset Break on Warning.
Read more >
How We Reduced Our React App's Load Time by 60% - InfoQ
Using React by itself will not result in a highly performant application. If you're not careful, the application can pick up bloat easily....
Read more >
cannot read property 'usememo' of null - You.com | The search ...
Am getting "TypeError: Cannot read properties of null (reading 'useMemo') error Redux in my react redux application. I made a very simple react...
Read more >
Master Debugging from Zero to Hero with Chrome DevTools
... to debug your Javascript and React applications with ease and quickly identify what performance issues and fix accessibility problems on ...
Read more >
Mozilla Firefox Release Notes
770079, Reload and Bookmark disappear from menu in Nightly on tablet with And. ... 762411, getScreenCTM scaling broken on inline embedded 'svg' elements....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found