-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enabling Watchman on Windows causes JS errors #7022
Comments
I've had success using watchman alpha on windows, not sure exactly what causes this but like you said the package is way too small. Maybe you can try resetting everything with
|
Does not help, I've tried reinstalling watchman, deleting the watch data, reinstalling the RN stack and deleting the My temporary solution is to run the packager in a Linux VM while the android build happens in Windows itself. And I guess the docs should suggest that too (considering the buggy performance of RN on Windows) |
I get exactly the same errors. Haven't been able to figure it out yet. |
It's still an issue. In addition, using the latest RN and RN CLI: [12:17:10 PM] <START> Crawling File System
[Hot Module Replacement] Server listening on /hot
React packager ready.
ERROR write EPIPE
{"code":"EPIPE","errno":"EPIPE","syscall":"write"}
Error: write EPIPE
at exports._errnoException (util.js:870:11)
at Socket._writeGeneric (net.js:681:26)
at Socket._write (net.js:700:8)
at doWrite (_stream_writable.js:301:12)
at writeOrBuffer (_stream_writable.js:287:5)
at Socket.Writable.write (_stream_writable.js:215:11)
at Socket.write (net.js:626:40)
at Client.sendNextCommand (C:\Users\Filip\basked\node_modules\react-native\n
ode_modules\sane\node_modules\fb-watchman\index.js:48:15)
at Client.command (C:\Users\Filip\basked\node_modules\react-native\node_modu
les\sane\node_modules\fb-watchman\index.js:235:8)
at onCapability (C:\Users\Filip\basked\node_modules\react-native\node_module
s\sane\src\watchman_watcher.js:83:19) This only happens when using watchman alpha, it does not happen if you uninstall it. |
Same issue ! With Postman getting this error {"message":"Cannot find entry file index.android.js in any of the roots: ["D:\Instore\react-native\SampleProject"]","name":"NotFoundError","type":"NotFoundError","status":404,"errors":[{}]} Have tried all possible workarounds
Without watchman packager takes nearly ~5 mins. App works. [3:01:12 PM] request:/index.android.bundle?platform=android&dev=true&hot |
@dimitrovskif I really appreciate your work! And I mentioned this post on watchman repo, the man in charge said they need a separate issue there and detailed information. facebook/watchman#19 (comment) So can you post it there? Thank you so much! |
I am experiencing the same issue on a Windows 7-64 machine. |
I'm using the "The latest alpha build is available here: |
i am having this problem with react native poject `` │ │ │ Keep this packager running while developing on any JS projects. Feel │ │ free to close this tab and run your own packager instance if you │ │ prefer. │ │ │ │ https://github.com/facebook/react-native │ │ │ └────────────────────────────────────────────────────────────────────────────┘ Looking for JS files in Loading dependency graph... Loading dependency graph, done. any solution please :) |
i am using windows 7 64bits and i i do not have not installed watchmen |
Hi there! This issue is being closed because it has been inactive for a while. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. Either way, we're automatically closing issues after a period of inactivity. Please do not take it personally! If you think this issue should definitely remain open, please let us know. The following information is helpful when it comes to determining if the issue should be re-opened:
If you would like to work on a patch to fix the issue, contributions are very welcome! Read through the contribution guide, and feel free to hop into #react-native if you need help planning your contribution. |
Running React Native 0.23.1 (with CLI 0.2.0) on Windows 7 works and the phone successfully loads the JS bundle: (note: no watchman installed)
After installing watchman (alpha for Windows 7 x64), the process is faster a few orders of magnitude:
However, now the packager server returns an error:
Deleting the index file and pasting it again randomly fixes the issue. However, the Android app now throws an error:
ReferenceError: Can't find variable: __fbBatchedBridge(<unknown file>:1)
You'd think that it is similar to #4881 and #4952 and the issue is the packer not running, but it actually is and the device can access it (correct ip:port in settings, tcp communication happens):
In addition the request returns valid babelified code that resembles the
index.android.js
source code (both when requested from the computer and the phone browser):Note: There is difference in source code size:
I am suspecting that the watchman ignores dependencies and generates a bundle which does not contain all the required code (including some dep
__fbBatchedBridge
)The text was updated successfully, but these errors were encountered: