【问题标题】:react native : React packager ready. ERROR Watcher took too long to loadreact native : React 打包器准备好了。 ERROR Watcher 加载时间过长
【发布时间】:2016-04-28 10:49:54
【问题描述】:

我试图在 react native 上运行一个 android 项目,但是当我尝试使用这个命令运行它时:react-native start 那么它会给我留下这个错误:

Looking for JS files in
   C:\Users\mohammad\Desktop\AwsoneProject

[2:55:39 AM] <START> Building Dependency Graph
[2:55:40 AM] <START> Crawling File System
[2:55:40 AM] <START> Loading bundles layout
[2:55:40 AM] <END>   Loading bundles layout (1ms)

React packager ready.

 ERROR  Watcher took too long to load
Try running `watchman version` from your terminal
https://facebook.github.io/watchman/docs/troubleshooting.html
Error: Watcher took too long to load
Try running `watchman version` from your terminal
https://facebook.github.io/watchman/docs/troubleshooting.html
    at [object Object]._onTimeout (index.js:103:16)
    at Timer.listOnTimeout (timers.js:92:15)

See http://facebook.github.io/react-native/docs/troubleshooting.html
for common problems and solutions.

我已经在网上搜索过,但几个小时后我仍然无法修复它。 我不得不提到我在这种情况下使用 Windows。 我会很感激任何帮助。

【问题讨论】:

    标签: android react-native watchman


    【解决方案1】:

    这实际上是 Windows 特有的问题。对我来说,它在 Linux 上运行良好。增加 FileWatcher 中的 MAX_WAIT_TIME。它实际上正在超时。

    this检查一下

    你必须增加这个:

    const MAX_WAIT_TIME = 120000;
    

    【讨论】:

    • 我们还要等多久?
    • 没有问题。只需使用 MAX_WAIT_TIME 属性。应该没问题的。
    【解决方案2】:

    【讨论】:

      猜你喜欢
      • 2017-12-19
      • 1970-01-01
      • 2017-12-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多