While following a server-side react tutorial, I encountered a runtime error caused by ReactComponentTreeDevtool. Specifically, the purgeDeep function seems to be problematic under certain conditions (react/lib/ReactComponentTreeDevtool.js line 47):
User Code:
Stack Trace:
Offending Code:
Resolution: Adding a check for undefined childIDs before the traversal (react/lib/ReactComponentTreeDevtool.js line 47) resolves the issue (see below).
Additional:
OS: OS X Yosemite (10.10.5)
Node: 4.4.7
Run on: babel-node (via babel-cli 6.11.4 )
Let me know if there's any additional information I should provide (e.g. dev dependencies). Thanks!
Can you provide a minimal project reproducing this? Thanks.
I pulled out ./node_modules for size. Just run npm install, then npm start and navigate to localhost:3000 to reproduce (hopefully).
This has been fixed in React 15.3.1.
(Also, thank you very much for providing a way to reproduce.)
Most helpful comment
(Also, thank you very much for providing a way to reproduce.)