You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
getRootIDs is not defined in ReactComponentTreeHook.js #8318
Just started running into this bug today, everything was going smoothly before then. Only started happening after I updated to 15.4.0.
When I do import React from 'react';, this error gets thrown on the page when I try to use ReactDOM to render something to the DOM. Here's my code:
import React from 'react';
import ReactDOM from 'react-dom';
import App from './main/App';
ReactDOM.render(<App />, document.querySelector('.wrapper'));
I'm using React 15.4.0 and ReactDom 15.4.0, and bundling everything with Rollup and Buble.
Here's a screenshot of what Chrome tells me is happening:
I'm seeing this too with rollup, I believe it's a rollup bug trimming too much code from the output - I opened rollup/rollup#1113 over there for the same issue
Activity
gaearon commentedon Nov 16, 2016
Can you reproduce this without Rollup?
tomcardoso commentedon Nov 17, 2016
Not easily — I'm not sure I know of any code playgrounds that do ES6-style module imports… Any ideas?
FWIW, this (obviously) works: https://jsfiddle.net/yvoy2g3x/
It's very possible that this is some side-effect of ES6-style module bundling. I tried replacing Buble with Babel, same problem.
gaearon commentedon Nov 17, 2016
Might be a Rollup bug then?
jbt commentedon Nov 17, 2016
I'm seeing this too with rollup, I believe it's a rollup bug trimming too much code from the output - I opened rollup/rollup#1113 over there for the same issue
tomcardoso commentedon Nov 17, 2016
Ah, sweet. Closing, then.
Stop relying on variable hoisting
LinusU commentedon Nov 22, 2016
This could be fixed here as well though, declaring the same variable multiple times in the same scope doesn't seem that clean...
Fix here: #8380 :)
Stop relying on variable hoisting (#8380)
Stop relying on variable hoisting (react#8380)
Stop relying on variable hoisting (react#8380)
Stop relying on variable hoisting (react#8380)