Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

react & web pack hot loader. "waiting for roots to load...to reload the inspector"

Just updated react to 0.13.3 and now I get the following message in Chrome react developer tool: "waiting for roots to load...to reload the inspector" and a button saying "click here".


And if I click the button, same thing again.

FYI: I am using WebPack & webpack-dev-server.

Have you seen this?

like image 266
Chris G. Avatar asked Sep 02 '15 17:09

Chris G.


People also ask

What is React is used for?

The React. js framework is an open-source JavaScript framework and library developed by Facebook. It's used for building interactive user interfaces and web applications quickly and efficiently with significantly less code than you would with vanilla JavaScript.

Is React for HTML or JS?

To get an overview of what React is, you can write React code directly in HTML. But in order to use React in production, you need npm and Node.js installed.

Is React Java or JavaScript?

React is a JavaScript-based UI development library. Facebook and an open-source developer community run it. Although React is a library rather than a language, it is widely used in web development. The library first appeared in May 2013 and is now one of the most commonly used frontend libraries for web development.

Is React for frontend?

React JS, commonly referred to as React is one frontend development framework, or to be more specific a library that has found a favorite with developers around the world.


1 Answers

This error is generally linked to modules not loading into the project correctly, but the cause of this when the react syntax is incorrect. Generally, it's a missing semicolon after return statements (easy to miss).

I've confirmed this using reacts tutorial, writing it out myself, seeing this error, then commenting mine out and replacing it with the script including example.js

like image 149
Ben Petersen Avatar answered Oct 16 '22 15:10

Ben Petersen