-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Cannot read property 'displayName' of undefined #1168
Comments
I observed this as well when rendering React Context elements with React 16.3.0. It works properly with React 16.3.1 and up. Looks like a prefix was added to the |
Repro: const MyContext = React.createContext();
ReactDOM.render(
<MyContext.Provider />,
document.getElementById('container')
); Version: 3.4.0 (september 20) Here's the line where we hit a snag: react-devtools/backend/attachRendererFiber.js Line 272 in 69d137c
Stack trace:
|
Opened a PR to fix: #1175. |
Our team is experiencing this too! Would be helpful to have this PR merged 🙇 I made this repository to help reproduce the bug, before I realized that there was already a ticket! Linking here, just in case it helps :) |
I have this issue too. And strange enough, it works on FF while not on Chrome, all with the latest version. Took me a while to figure out it's not my fault, mobx's fault, mobx-react's fault nor CRA2's fault(ok, after upgrading to CRA 2.0.5 from 2.0.4, it works on FF, but still no luck for chrome)... |
Just got this problem too. After updating to [email protected], [email protected] got error at backend.js line 9159
This is the part of
Just here to chime in, if there's anything I can do I'd be glad to help. |
I just added #1195. Only way I could fix it is to rollback to [email protected] and [email protected]. |
For what its worth @fillipvt I had the same issue when upgrading, turns out I had to restart my chrome as the react dev tools were version 3.4.0 .. once I restarted the dev tools were upgraded to 3.4.2 and the error went away... hope this helps!! |
nice @dbryantm! I totally missed your comment above! Dang, wish I would have seen it before lol could have saved me some time. |
Getting this issue after upgrading to react-native 0.57.5 and React 16.6.3 |
Getting 'Cannot read property 'displayName' of null. Using React DevTools v. 3.4.3., React v. 16.6.3, React-Dom. Gonna try rolling back to 16.5.2 and see what happens. |
Nah still happening. |
@blksheep93 Can't seem to reproduce this. Can you post a repro snippet (or codesandbox link)? Thanks! |
Sorry, but I've never used codesandbox before, or else I'd set up a link for you. All the research I've done to fox this suggests that the problem is based around the consumer. Repro: RDT Version: 3.4.3 Here goes first stack trace
and the snippet it's pointing to:
then the second error in the stack trace
and the code its referring to ( @prices.jsx)
|
@blksheep93 Setup an test repo that reproduces your error using create-react-app. |
@hristo-kanchev @vramana: Does this repro case work for y'all? https://github.com/matchu/react-devtools-context-bug-repro |
@matchu Works I think. I'll check later. |
To clarify: React 16.3.0 used A repro case can be found here: https://unpkg.com/[email protected]/cjs/react.development.js |
Hi guys! I upgrade react-devtools to 3.4.0 version and catch an error:
Cannot read property 'displayName' of undefined in backend.js
Before 3.4.0 I had 3.3.2 and it was ok.
So, I can't use tab react-devtools, because that have waiting status:
Waiting for roots to load...
Browser: Ya.Browser v 18.9.0.3363 (64-bit)
The text was updated successfully, but these errors were encountered: