Chris G.
Chris G.

Reputation: 25964

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?

Upvotes: 10

Views: 7017

Answers (3)

sun
sun

Reputation: 1

Check your imports and exports of each of your component files. I had this same error because I forgot to export a component to my index.js file.

Upvotes: 0

Ben Petersen
Ben Petersen

Reputation: 506

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

Upvotes: 6

Chris G.
Chris G.

Reputation: 25964

Updating my loader worked:

module: { loaders: [ { test: /.js$/, exclude: /node_modules/, loader: "babel-loader"} ] }

Upvotes: 0

Related Questions