Comments (7)
Can you restart your computer and try again?
Sometimes fseventsd on OSX gets into a bad state which can be solved by restarting. If that didn't work please bump the timeout we have in react-packager FileWatcher.js, maybe we need a longer one.
Let me know if either of those work.
from react-native.
I restarted my computer and tried running npm start again, without any luck. I also changed MAX_WAIT_TIME = 30000; in the react-packager/src/FileWatcher/index.js file and didn't have any luck with that either.
When I ran npm install this is the output I got:
npm WARN package.json [email protected] punycode is also the name of a node core module.
npm WARN package.json [email protected] No repository field.
npm WARN prefer global [email protected] should be installed with -g
So I ran npm install -g. I'm not sure if that makes a difference or not.
from react-native.
Oh, maybe this is the same error as another issue. Did you happen to have typed
npm install npm start
by chance? If yes, can you do
rm -Rf node_modules
and do
npm install
from react-native.
Oh yes, I did type that. I did the rm -Rf node_modules and npm install, but I'm still seeing the watcher error happening. When I run the simulator, the app loads, and a red screen appears. This is what the terminal has:
Error: Watcher took too long to load.
at null._onTimeout (/Users/mrscobbler/Projects/react-native/packager/react-packager/src/FileWatcher/index.js:37:16)
at Timer.listOnTimeout as ontimeout
[15:02:49] request:/Examples/Movies/MoviesApp.includeRequire.runModule.bundle
from react-native.
Ok I think I fixed my problem! I had installed watchman on my computer and then upgraded my computer to Yosemite so I could get the latest version of Xcode. I uninstalled watchman and then reinstalled it. That fixed the problem. I'm guessing the version of watchman I had didn't work with Yosemite? Thanks for the help!
from react-native.
Awesome! @amasad I think it would be nice to add something like "try running watchman
from your terminal" to the "Watcher took too long to load" error message, because it can give more details about what's wrong.
from react-native.
I think that would help. Thanks again!
from react-native.
Related Issues (20)
- @react-native/babel-preset imports from react-native not deferred (lazy requires) HOT 1
- i need help for Animated.View .ValueXY HOT 1
- BackHandler Does Not Work Google Pixel HOT 2
- Android FlatList with borderRadius applied does not respect border to clip list items on Android HOT 3
- Intl.NumberFormat does not support strings HOT 2
- After installing react-native-screens ios build not working - Error: info Run CLI with --verbose flag for more details. HOT 2
- 'React/RCTBridgeDelegate.h' file not found HOT 4
- > Task :packages:react-native:ReactAndroid:buildCMakeDebug[arm64-v8a][bridgeless,fabricjni,etc] FAILED FAILURE: Build failed with an exception. HOT 1
- DevSupport classes included in release apks (~40KB size impact) due to DevLoadingModule HOT 1
- FlatList Clipping Issue on iOS with New Architecture Enabled HOT 2
- [iOS] Data race when accessing RCTNetworkTask.status
- AppState is not changes when go to apps switcher (in Android Pixel device) HOT 2
- can't running app :ReactNative:Running '[node, -e, try {console.log(require('@react-native-community/cli').bin);} catch (e) {console.log(require('react-native/cli').bin);}]' command failed. HOT 4
- Parent border is drawn over the child content HOT 3
- [ios only] No bundle URL error when npx react-native init ProjectName HOT 4
- Metro is not starting on custom port HOT 2
- [0.74.1] Npm install WARN HOT 2
- [codegen]: TypeError: glob.sync is not a function HOT 1
- cocoapods: undefined method `end_with?' for nil:NilClass HOT 1
- [iOS] Static counters lead to data races
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.