Git Product home page Git Product logo

Comments (7)

amasad avatar amasad commented on April 17, 2024

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.

mrscobbler avatar mrscobbler commented on April 17, 2024

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.

vjeux avatar vjeux commented on April 17, 2024

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.

mrscobbler avatar mrscobbler commented on April 17, 2024

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.

mrscobbler avatar mrscobbler commented on April 17, 2024

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.

frantic avatar frantic commented on April 17, 2024

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.

mrscobbler avatar mrscobbler commented on April 17, 2024

I think that would help. Thanks again!

from react-native.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.