Skip to content

getRootIDs is not defined in ReactComponentTreeHook.js #8318

Closed

Description

@tomcardoso

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:

Activity

  1. gaearon commented on Nov 16, 2016

    @gaearon
    Collaborator

    Can you reproduce this without Rollup?

  2. tomcardoso commented on Nov 17, 2016

    @tomcardoso
    Author

    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.

  3. gaearon commented on Nov 17, 2016

    @gaearon
    Collaborator

    Might be a Rollup bug then?

  4. jbt commented on Nov 17, 2016

    @jbt

    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

  5. tomcardoso commented on Nov 17, 2016

    @tomcardoso
    Author

    Ah, sweet. Closing, then.

  6. added a commit that references this issue on Nov 22, 2016
    aade9c6
  7. LinusU commented on Nov 22, 2016

    @LinusU
    Contributor

    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 :)

  8. added a commit that references this issue on Nov 22, 2016
    93042c2
  9. added a commit that references this issue on Mar 15, 2017
    77447c9
  10. added a commit that references this issue on Jun 25, 2026
    d83b1e5
  11. added a commit that references this issue on Sep 9, 2026
    02f2811
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions