-
Notifications
You must be signed in to change notification settings - Fork 47k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Missing React element for debugID" warning when triggering a render in componentWillMount #7187
Comments
Interestingly, also appears triggered by |
Okay, #7193 should fix it. |
Fixed by #7193. |
Hello, Please, can you try it, and tell me, where is the problem? I cant find it. I am very thankful for all your help! |
This is a bug in React and it should be fixed in master. |
Hey, I'm still getting this warning (specifically |
File an issue with the code reproducing it. Thank you! |
* Add failing tests for facebook#7187 and facebook#7190 * Pass shouldHaveDebugID flag to instantiateComponent This allows us to remove a hack that was added in facebook#6770 and caused facebook#7187 and facebook#7190. * Move logic for choosing whether to use debugID outside instantiate
|
for me "15.3.0-rc.3" and "15.3.0" not fixes issue |
@maullerz This issue is about Jest. Are you using Jest? Can you provide a sample project demonstrating the issue? |
@gaearon no, i dont use Jest. |
@gaearon Please have a look at my simple boilerplate - https://github.com/xuqingkuang/react-redux-boilerplate When execute |
Thanks for a repro case. |
Hack: filter test outputInstallationSave the following file in the root of your project
Usage
Conclusion◔ᴗ◔ |
This was fixed in React 15.3.1. |
I'm still experiencing this on 15.3.2 when running mocha to execute tests :( |
Please file an issue with a test case reproducing it. I'm afraid we can't help otherwise. (But also run |
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
As reported by @adamryvola in #6869 (comment), React is displaying a warning
Warning: ReactComponentTreeDevtool: Missing React element for debugID 2 when building stack
when another component is rendered incomponentWillMount
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://jsfiddle.net or similar (template: https://jsfiddle.net/reactjs/69z2wepo/).
JSFiddle: https://jsfiddle.net/0n3a6vp9/
What is the expected behavior?
According to @gaearon this warning is "against internal bugs in React, it's not meant for users" (source: #6869 (comment)) so this warning should not be triggered.
Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
React
15.2.0
, no issue withReact 0.14.7
The text was updated successfully, but these errors were encountered: