Closed
Description
I have upgraded to the macOS Sierra beta yesterday, and the React Native Packager seems to fail. I've tried to reinstall the dependencies, but no use.
The output of the packager is this:
[11:45:02 AM] <START> Building Dependency Graph
[11:45:02 AM] <START> Crawling File System
[Hot Module Replacement] Server listening on /hot
React packager ready.
2016-08-09 11:45 node[6397] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
2016-08-09 11:45 node[6397] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
2016-08-09 11:45 node[6397] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
ERROR watch null EMFILE
{"code":"EMFILE","errno":"EMFILE","syscall":"watch null","filename":null}
Error: watch null EMFILE
at exports._errnoException (util.js:873:11)
at FSEvent.FSWatcher._handle.onchange (fs.js:1217:21)
The only reference to that specific error I have found is this old issue on the Node 0.10 repo's. I have tried the 'fix' in that topic, namely increasing the open file references limit. That didn't work.
The issue occurs on both Node 4.4.7 and 6.3.1, on macOS Sierra 10.12 on a MBP 2015 15". Does anyone know what is going on here?
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
deadlocked247 commentedon Aug 10, 2016
Just got this as well, also on sierra
mc13an commentedon Aug 10, 2016
me as well, also on sierra
mc13an commentedon Aug 10, 2016
Credit to @passwd for figuring this out
We were able to get it to work by increasing the max file limit and moving to watchman v4.6.0
here are the steps we followed:
1. increase max file limt
2. upgrade to watchman 4.6
deadlocked247 commentedon Aug 10, 2016
@mc-lean you're the best!!!
goldenice commentedon Aug 12, 2016
@mc-lean Nice! :)
Are there any plans to update watchman in the RN-repo so RN works out-of-the-box again?
mc13an commentedon Aug 12, 2016
@goldenice I would guess that it is. Sierra is due out in September so I would think they would plan to support it out of the box soon
aahlad-allari commentedon Aug 21, 2016
@mc-lean Thanks 👍
kjpolaszek commentedon Aug 29, 2016
Great, it works. 👍
zhaomiing commentedon Sep 6, 2016
thanks, you made my day :)
jalmaas commentedon Sep 13, 2016
System doesn't report the updated value when i run
sysctl kern.maxfiles
(reports 300k) but upgraded to watchman 4.7.0 withbrew install watchman
and it seems to workmonder commentedon Sep 13, 2016
@jalmaas value updates only after reboot. Worked for me on GM.
But indeed, just updating to
watchman
4.6.0+ seems to be enough.jalmaas commentedon Sep 13, 2016
it didn't update after reboot here
ide commentedon Sep 13, 2016
React Native works fine with relatively up-to-date software. These are the settings that are working for me:
lauborges commentedon Sep 13, 2016
unfortunately it does not work for me
36 remaining items