2016-03-01 32 views
1

有一個錯誤,當我建立我的反應本地項目與版本0.20.0:反應本土watchmanResponse無法解決根本

Looking for JS files in 
    /Users/rockyl/WorkSpaces/react-native/TinySNS 

[13:55:06] <START> Building Dependency Graph 
[13:55:06] <START> Crawling File System 
[13:55:06] <START> Loading bundles layout 
[13:55:06] <END> Loading bundles layout (1ms) 
[Hot Module Replacement] Server listening on /hot 

React packager ready. 

ERROR unable to resolve root /Users/rockyl/WorkSpaces/react-native/TinySNS: failed to opendir(/Users/rockyl/WorkSpaces/react-native/TinySNS): No such file or directory 
{"watchmanResponse":{"version":"4.4.0","error":"unable to resolve root /Users/rockyl/WorkSpaces/react-native/TinySNS: failed to opendir(/Users/rockyl/WorkSpaces/react-native/TinySNS): No such file or directory"}} 
Error: unable to resolve root /Users/rockyl/WorkSpaces/react-native/TinySNS: failed to opendir(/Users/rockyl/WorkSpaces/react-native/TinySNS): No such file or directory 
    at BunserBuf.<anonymous> (/Users/rockyl/WorkSpaces/react-native/TinySNS/node_modules/react-native/node_modules/sane/node_modules/fb-watchman/index.js:95:23) 
    at emitOne (events.js:77:13) 
    at BunserBuf.emit (events.js:169:7) 
    at BunserBuf.process (/Users/rockyl/WorkSpaces/react-native/TinySNS/node_modules/react-native/node_modules/bser/index.js:289:10) 
    at /Users/rockyl/WorkSpaces/react-native/TinySNS/node_modules/react-native/node_modules/bser/index.js:244:12 
    at doNTCallback0 (node.js:419:9) 
    at process._tickCallback (node.js:348:13) 

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

這裏是日誌: watchman logs 這裏是實時間日誌: watchman real-time logs

但根路徑確實存在。

+0

請分享您的守望者日誌的要點/粘貼我們應該有這樣的解釋地表此錯誤。 https://facebook.github.io/watchman/docs/troubleshooting.html#where-are-the-logs有關於如何找到它們的一些信息 –

+0

我把日誌放在我的問題中。 – AlienCoder

+0

請運行'watchman --server-encoding = json --persistent log-level debug | grep react-native'在另一個窗口中,同時構建您的反應原生項目,並共享輸出。如果你在IRC上,FreeNode上的#watchman是我們可以實時討論這個問題的地方 –

回答

1

感謝您發佈這些日誌;這裏發生的問題是正在監視的路徑中的WorkSpaces目錄的外殼問題。這有一些複雜的背景,導致看守員需要知道文件名的確切外殼,以便我們可以報告僅更換案件的情況。

TL; DR是要求React Native以Workspaces作爲目錄名稱來查看路徑,或者重命名目錄以便它實際上是WorkSpaces(換句話說,請確保您的路徑要求與文件系統完全匹配)。

有幾個錯誤守望在這裏,我會在此期間固定的工作:

  1. 我們應該看使用我們嚴格佳能在早期(規範化這個路徑應該使這個用例「只是工作」)
  2. 當這種不匹配時
+0

坦克很多,我把項目移到其他的摺疊,它的工作! – AlienCoder