反应&网络包热加载器.“等待根加载...重新加载检查器" [英] react & web pack hot loader. "waiting for roots to load...to reload the inspector"

查看:31
本文介绍了反应&网络包热加载器.“等待根加载...重新加载检查器"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

刚刚将 react 更新到 0.13.3,现在我在 Chrome react 开发人员工具中收到以下消息:waiting for root to load...to reload the inspector" 和一个按钮,上面写着click这里".

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.

仅供参考:我正在使用 WebPack &webpack-dev-server.

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

你见过这个吗?

推荐答案

此错误通常与模块未正确加载到项目中有关,但是当 react 语法不正确时导致此错误.通常,它是 return 语句之后缺少的分号(容易错过).

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

我已经使用 reacts 教程 确认了这一点,我自己写的,看到这个错误,然后注释掉我的并用包含 example.js 的脚本替换它

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

这篇关于反应&网络包热加载器.“等待根加载...重新加载检查器"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆