Comments (8)
cc @amasad
from react-native.
This was an environmental issue with a previous install of pcre
on this machine and I was able to resolve it.
Here are details in case anyone else encounters it:
This was on a box that had never had Homebrew installed on it, but did have pcre
installed in /usr/local
and other places. When I installed Homebrew, brew doctor
warned about these pcre
files, and since I had previously noticed that pcre
is used for React Native, I proceeded to manually remove all of the pcre
files that brew doctor
reported, and then proceeded with brew install node
and brew install watcher
.
Given that this appeared to be a watcher
issue, I tried uninstalling watcher
, and reinstalling it. At that point, brew had me try brew link pcre
and pointed out additional existing pcre
files that it was having problems with, and I addressed each of those, with the offending files/directories including
/usr/local/bin/pcre-config
/usr/local/bin/pcregrep
/usr/local/bin/pcretest
/usr/local/share/doc/pcre
/usr/local/share/man/man1/pcre*
/usr/local/share/man/man3/pcre*
After cleaning up these additional leftover files, and successfully installing watchman
, I then used brew
to uninstall node
, pcre
, and watchman
and clean reinstall node
and watchman
.
After all of this, and in a fresh clone of react-native
, things worked on this box, including running the Movies app in Xcode.
from react-native.
I'm glad it's working now. I'm glad we put a timeout on that so it doesn't fail silently :)
from react-native.
Is there any way we can add a warning so that other people don't fall into the same trap?
from react-native.
I doubt it's typical problem, it's the first time I've heard of it with watchman. And a lot of people are using it through my sane module. If it comes up again, will have a deeper look.
from react-native.
FWIW, I had installed pcre
binaries on this particular machine a few years ago for some esoteric thing I can't even recall the details of. I don't usually install binaries like that. That, combined with the fact that I hadn't been using Homebrew is probably a fairly rare combination. Homebrew itself tried to warn about it, so I had enough clues to go on.
The existence of the timeout is useful, IMHO. If it had somehow additionally indicated something derailing in a way that pointed a finger at pcre
, that would probably have been helpful and I would have sorted it sooner, but to be honest, I didn't lose a lot of time on this and was able to sort it out pretty quickly anyway.
from react-native.
Is there any way we can add a warning so that other people don't fall into the same trap?
I think running watchman
from terminal could give a clue
from react-native.
I'm not sure how it all fell into place, but I ended up in the same place as @mfikes. I followed his above steps and was able to resolve the issue.
The odd part is that pcre
appeared to have been installed by homebrew (it came up in brew ls
). I was also able to run watchman
from the command line in other scenarios and it would work, it was only not working for react-native! Anyway, uninstalling pcre
and doing a fresh install of node and watchman resolved my issue. Thanks for documenting how you fixed it @mfikes!
from react-native.
Related Issues (20)
- cannot get 304 Not modified status from fetch
- Android build fail - Unable to make progress running work. There are items queued for execution but none of them can be started HOT 13
- redefinition of module 'ReactCommon' iOS HOT 7
- java.lang.RuntimeException: com.facebook.react.devsupport.JSException: Cannot read property 'setGlobalHandler' of undefined HOT 6
- Buttons are not clickable until the TextInputField receives focus. HOT 3
- Performance Issues with useNativeDriver in React Native 0.74.1 of New Arch: Comparing Animation Smoothness and FlatList Scrolling HOT 2
- Appreance.getColorScheme() always returns "light" | Android | IOS | React Native | Expo HOT 2
- Command PhaseScriptExecution failed with a nonzero exit code with ios build HOT 6
- Unable to add private maven repo to the React native project directly HOT 6
- Using initialScrollIndex with Flatlist will cause missing items with react native HOT 1
- Unexpected keyword 'typeof' HOT 1
- ScrollView may cause some confusion when deleting some child items after sliding at the child level HOT 4
- newArchEnabled=true not working on android HOT 2
- java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "__emutls_get_address" referenced by "/data/app/~~Q1vjL-Sbogpgp23q4KuiUA==/com.vastmindz-2Qq1zN8YfrsoxWIi-B5xZQ==/base.apk!/lib/arm64-v8a/libfolly_runtime.so"... HOT 6
- [v0.74] Android: Promises from native modules stuck HOT 4
- [v0.74.1]Cursor prop is causing crash on Text HOT 2
- TextInput (IOS) : maxLength & multiline true = onChangeText multiple call HOT 5
- 2 files found with path 'lib/arm64-v8a/libopencv_java4.so' from inputs: - /Users/wegile-1003/.gradle/caches/transforms-3/8ec77b58992a0a620e60c240eaed7c29/transformed/jetified-rppg_core-0.2.0/jni/arm64-v8a/libopencv_java4.so - /Users/wegile-1003/.gradle/caches/transforms-3/a576edfdc1ae89d711e78c8d27ec535b/transformed/jetified-opencv-android-4.1.2/jni/arm64-v8a/libopencv_java4.so If you are using jniLibs and CMake IMPORTED targets, see HOT 3
- No visible error is shown on iOS Bridgeless when there is an error before `AppRegistry.registerComponent` HOT 1
- yarn ios error ! error Could not find scheme greenhouse. Please make sure the schema you want to run exists. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native.